cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

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
Labels (1)
0 Kudos
3 Replies
Highlighted

Re: What event is repair mode in an installscript project?

hi try to use the condition. when you want to execute the custom code.and schedule after file moved
0 Kudos
Highlighted
Pilgrim

repair mode

Hi,
I'm sorry I don't quite understand what you wrote. Could you please explain it a little more?
Thanks
0 Kudos
Highlighted
Flexera beginner

Re: What event is repair mode in an installscript project?

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

nType = SdWelcomeMaint(szTitle, szMsg, REMOVEALL);


HTH
0 Kudos