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
- :
- Re: What event is repair mode in an installscript project?
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
‎Oct 31, 2013
04:24 PM
What event is repair mode in an installscript project?
Hi,
I've created an installscript project that has some custom code that gets executed to configure some web.config files.
If I double click on the executable after I've installed the package it gives me the option to repair, modify or remove.
So far so good.
If I select repair and click next all the files get redeployed but my custom code to configure the web.config files doesn't get executed.
Where would I put my custom code in the event of a repair?
Any help will be much appreciated.
Thank You
I've created an installscript project that has some custom code that gets executed to configure some web.config files.
If I double click on the executable after I've installed the package it gives me the option to repair, modify or remove.
So far so good.
If I select repair and click next all the files get redeployed but my custom code to configure the web.config files doesn't get executed.
Where would I put my custom code in the event of a repair?
Any help will be much appreciated.
Thank You
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2013
02:59 AM
hi try to use the condition. when you want to execute the custom code.and schedule after file moved
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2013
08:49 AM
Hi,
I'm sorry I don't quite understand what you wrote. Could you please explain it a little more?
Thanks
I'm sorry I don't quite understand what you wrote. Could you please explain it a little more?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2013
12:40 PM
paulied,
I think the function you are looking for is OnMaintUIBefore. In the InstallScript window (with Setup.rul selected), select "Before Move Data" from the first dropdown, then "OnMaintUIBefore" in the second one.
If you are looking to add code to the Repair section: after the following line of code (which should be auto-generated), your nType should be REPAIR. Use an "if" statement to add your code when nType = REPAIR
HTH
I think the function you are looking for is OnMaintUIBefore. In the InstallScript window (with Setup.rul selected), select "Before Move Data" from the first dropdown, then "OnMaintUIBefore" in the second one.
If you are looking to add code to the Repair section: after the following line of code (which should be auto-generated), your nType should be REPAIR. Use an "if" statement to add your code when nType = REPAIR
nType = SdWelcomeMaint(szTitle, szMsg, REMOVEALL);
HTH
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)