Dev
Dev

Reputation: 141

VS Setup project after installation launching the application second time is taking very long time

Hi I have made a setup project of eclipse and given shortcut of eclipse.exe in start menu as well as desktop.

After installing the setup.msi i am launching it either by desktop shortcut or start program, first time after installation application is opening very fast but after closing the application and again starting through shortcuts its taking very long time to launch it. it showing message "Please wait while windows configure "Project Name"" for more than 5 minutes.

Upvotes: 1

Views: 970

Answers (2)

Eternal21
Eternal21

Reputation: 4664

Following mmx's advice, I looked at event log, which gave me some clues about why MSI is complaining. In my case it was:

Detection of product '{5BF6F4BA-4266-42E8-A376-EB341856049F}', feature 'DefaultFeature', component '{5BF6F4BA-4266-42E8-A376-EB341856049F}' failed. The resource 'C:\Program Files (x86)\My Company\My App\' does not exist.

It didn't make sense, because I wasn't putting my app in that specific folder. I was putting my app folder into another folder, as following:

'C:\Program Files (x86)\My Company\Some Other Folder\My App\'

After searching through MSI files for a bit, I finally found the culprit. If you look at the 'Application Folder' (in Visual Studio right click on your Setup MSI project -> View -> File System). You'll see its DefaultLocation property is set to:

[ProgramFilesFolder][Manufacturer]\[ProductName]

The fix in my case was simply replacing it with the following:

[ProgramFilesFolder][Manufacturer]\Some Other Folder\My App

After doing that, MSI was no longer triggering repairs on startup.

Upvotes: 0

Cosmin
Cosmin

Reputation: 21416

This happens because Windows Installer detects missing resources and triggers a repair. Here is a similar discussion: installed shortcut causing install to rerun visual studio 2010

Upvotes: 1

Related Questions