We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

benb
Posts: 5
Joined: Wed Jun 13, 2007 8:53 am

Running an exe specified in a registry key

Hi,

I'm fairly new to Caphyon, so sorry if this is an obvious one!

I want to be able to read a value from a key, that will have data in the form

path\uninst.exe -some parameters

If the key is there, I simply want to run the file with it's parameters. How do I go about this?

Thanks
benb
Posts: 5
Joined: Wed Jun 13, 2007 8:53 am

To be more specific, I want to check the registry key for the old installer of our app, then if it's there, uninstall it before I install with Caphyon.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Create a registry search in the "Search" page. The result is stored by default in the "RESULT_PROPERTY" property (you can change it in the left tree).

Now in the "Custom Actions" page add a "Property Source" type of custom action and under "InstallExecuteSequence->AppSearch". Use following options for the custom action:

Property Name: RESULT_PROPERTY (the search property defined in the "Search" page)
Command Line: empty (if you don't have any other parameters)
Execution Condition: NOT Installed

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”