Manual use of RunOnce
Posted 11 November 2003 - 18:52
The situation is that during my installation I launch an executable which is itself a self extracting executable. This executable will prompt the user to reboot. If the user decides to reboot, I want my MSI to kick off automatically, so I need to put it into the RunOnce registry setting. However, if the user does NOT choose to reboot, I will need to remove it from the registry.
As far as I can see, the trick is to know which drive the MSI is on, so that I can build the string correctly to place into/remove from the registry. Is there any way to know what drive the MSI has been launched from, in InstallScript, for instance?
Posted 12 November 2003 - 09:33
Posted 12 November 2003 - 17:02
I tried the SourceDir and it does exactly what I needed it to do. Next problem they threw at me is that the name of the .MSI file is modified during our Release phase. The name has the release version and the build date worked into it. So I don't know at the time I am building the .MSI file what the name will be! Is there a property similar to SourceDir that will tell me the name of the .MSI?
Posted 13 November 2003 - 09:18
Posted 13 November 2003 - 12:39