This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom action exe is not called in repair mode
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 01, 2011
02:45 AM
Custom action exe is not called in repair mode
Hi
I added a custom action which calls an exe during the installation of my product ("Custom Actions During Installation"/"After File Transfer"). That works fine.
The same exe is called on uninstallation ("Custom Actions During Uninstallation"/"Before System Changes") with different command line arguments. That works as well.
I want my custom action to run when "Repair" is selected from within the Add/Remove Software control panel, too. Under "Custom Actions during Maintenance"/"After Setup Complete success dialog" I added the same custom action as in the "During Installation" section.
It's important that my custom action runs after any missing files/folder structure was repaired. Therefore I guess I have to put it into the last event available.
However, the exe is just not called at all.
Any hints are greatly appreciated!
Thanks, Luc
I added a custom action which calls an exe during the installation of my product ("Custom Actions During Installation"/"After File Transfer"). That works fine.
The same exe is called on uninstallation ("Custom Actions During Uninstallation"/"Before System Changes") with different command line arguments. That works as well.
I want my custom action to run when "Repair" is selected from within the Add/Remove Software control panel, too. Under "Custom Actions during Maintenance"/"After Setup Complete success dialog" I added the same custom action as in the "During Installation" section.
It's important that my custom action runs after any missing files/folder structure was repaired. Therefore I guess I have to put it into the last event available.
However, the exe is just not called at all.
Any hints are greatly appreciated!
Thanks, Luc
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 02, 2011
11:23 AM
I am able to call a .exe when clicking the Finish button on the Maintenace Complete dialog. Here is what I did:
[LIST=1]
Create a new Express project.
Go to the Files and Folders view.
Add a file to the INSTALLDIR folder.
Go to the Custom Actions view.
Right-click on the "After Setup Complete Success dialog" node under the "Custom Actions during Maintenance" section.
Add a custom action calling C:\Windows\Notepad.exe."
Build and install the setup.
Open the Add or Remove Programs panel in the Control Panel.
Find the application installed in step 7, and click the Change button.
Select the Repair mode on the Program Maintenace panel and proceed the installation.
Click the Finish button on the Completed dialog.
Notepad.exe is launched.
Am I missing something?
[LIST=1]
Am I missing something?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)