
lpchen1.5524935133113364E12 asked a question.
User Choose Whether or Not to Run Utility
Hi,
I have this DB utility which i want to be part of my install. It's just an exe. I want the user during install to be prompt with a dialog of radio button to whether or not run this utility. I am using a Basic MSI project. I have a custom dialog made. I have searched all the forums, I am not sure where to start!
:confused:
Add a series of RadioButtons to the RadioButtonGroup. Associate each button to a value such as TRUE or FALSE. This is the value assigned to RUNMYAPP.
Set a condition on your custom action like: RUNMYAPP="TRUE"
Also remember that if your CA changes the system state it should be scheduled as deferred and also have an rollback CA.
""A program run as part of the setup did not finish as expected..."
Now if you are sure you need an EXE, keep in mind that MSI doesn't support making additional files available to a custom action. However, InstallShield has Support Files and InstallScript has a LaunchAppAndWait() function. Combining these two features would do what you (think you) want.
The .exe file requires the sql files to be in the same folder. I added those sql files in the Support Files section in MSI Project. However it cannot find those files during execution. So it seems like there might not be a way to have dependant files as part of the setup file?
Otherwise, put the EXE in the Support Files also and call it from an InstallScript custom action. Use MsiGetProperty to get the SUPPORTDIR property to know where to call the exe from. The SQL files will be in the same directory.
Ok so I added the exe and supporting files into the support files section. I started a script using SUPPORTDIR^"app.exe".
I used LaunchApp to launch it. But it is not firing and returning a -1.
When i did an output for the SUPPORTDIR it pointed to some temp directory inthe local settings folder. By looking at it, non of the files I added to the support dir exists there. Am I missing something? When does it copy those files into temp?
Thanks for the quick responses!!
Can you sequence this before InstallFinalize?