Archive: After install, starting app launches windows installer


After install, starting app launches windows installer
I have a problem that occurs after a customer installs on some variants of Windows. When they launch the installed app, it starts a windows installer instead of the app. Usually, they can cancel and the app runs fine.

What I think is going on is I haven't registered all DLL's/OCX's and some Win variants try to resume the install.

Any input/suggestions would be greatly appreciated.


Try deleting from the MSI database using Windows Installer Cleanup and then see if the app runs. If it fails to run it might tell you what needs fixing.

Stu


Stu,

I am unable to recreate the problem on my PC's (XP SP2, Vista 32bit Home Basic, Vista 64bit Home Premium) and asking my customers to run cleanup utility may be problematic.

My current solution is to use a different installer which fixes the problem.

Thanks for the tip. I'll run the cleanup utility on my systems to see if any clues emerge.


I've had this problem too - the cause is that you have some installed files that are set as required - if the file gets deleted by the user or virus scanner then Windows Installer will try to repair the required file by running the install again to allow the user to fix the missing file. by using Windows install cleanup you can remove the Windows Installer Information about the install but leave the installed program intact. this way the system will not try to repair itself - the only problem is that you also lose the uninstall ability.


I'm sure the files aren't being deleted by the user since they run the install then immediately try to run the program. I send these customers a new install using Advanced Installer and everything works fine. I do think the problem is related to missing or unregistered files. I use the following to register DLL's:

!insertmacro InstallLib REGDLL NOTSHARED REBOOT_NOTPROTECTED "any.dll" "$SYSDIR\any.dll" $SYSDIR