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: Set properties during Maintenance Install
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
‎Aug 02, 2007
10:00 AM
Set properties during Maintenance Install
I have a Basic MSI and during the initial install, two components are installed based on the values of two different properties. If the respective property is set, then the component's files will be installed to a folder. This part is working fine.
But, during the maintenance install, I need to set these properties based on the presense of the files in this folder. Property1 will be set if the File1*.jpg are present in the folder, and the other Property2 will be set if the File2*.jpg are present in the folder. These two properties will in turn be used to set some checkboxes in a dialog that is displayed during the maintenance install UI sequence.
I have tried doing this with an InstallScript custom action, but it doesn't seem to be working. All I am doing is checking if the files are present, and if so, set the respective property. I am calling my custom action after the CostFinalize action in the UI Sequence.
Do you think I am going about this the right way?
But, during the maintenance install, I need to set these properties based on the presense of the files in this folder. Property1 will be set if the File1*.jpg are present in the folder, and the other Property2 will be set if the File2*.jpg are present in the folder. These two properties will in turn be used to set some checkboxes in a dialog that is displayed during the maintenance install UI sequence.
I have tried doing this with an InstallScript custom action, but it doesn't seem to be working. All I am doing is checking if the files are present, and if so, set the respective property. I am calling my custom action after the CostFinalize action in the UI Sequence.
Do you think I am going about this the right way?
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2007
02:50 PM
Offhand I don't see an obvious problem with this approach; perhaps you can post the action settings and a skeleton of the InstallScript code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 02, 2007
11:09 PM
Can you also specify what is not working? Are the properties not getting set, or are the checkboxes not getting set?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 03, 2007
02:42 PM
I think I have found a problem.
I have two custom actions that are both InstallScript. So, each custom action has an InstallScript function that goes with it. Does each custom action have it's own Setup.rul file?
Right now, I have one Setup.rul file and both functions are in it. Let's call it Function1 and Function2. CustomAction1 uses Function1 and CustomAction2 is supposed to use Function2.
Now, when I click on CustomAction1, it refers to Function1. When I click on CustomAction2, it refers to Function1, yet I need it to refer to Function2. For some reason I can't change it to Function2.
As a result, I think the installer is getting confused by this.
I have two custom actions that are both InstallScript. So, each custom action has an InstallScript function that goes with it. Does each custom action have it's own Setup.rul file?
Right now, I have one Setup.rul file and both functions are in it. Let's call it Function1 and Function2. CustomAction1 uses Function1 and CustomAction2 is supposed to use Function2.
Now, when I click on CustomAction1, it refers to Function1. When I click on CustomAction2, it refers to Function1, yet I need it to refer to Function2. For some reason I can't change it to Function2.
As a result, I think the installer is getting confused by this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 03, 2007
02:54 PM
As a sanity check, what is the signature of Function2? The prototype should be something like:
export prototype Function2(HWND);
and the function definition should begin something like:
function Function2(hInstall)...
export prototype Function2(HWND);
and the function definition should begin something like:
function Function2(hInstall)...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 03, 2007
03:22 PM
Yes Robert, I just checked and the prototype and function header of Function2 are as you specified.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 03, 2007
04:45 PM
I fixed this by deleting the CustomAction2 and recreating it. Then I was able to point it to Function2 without any problems.
Now, on to a different problem. Thanks for the help.
Now, on to a different problem. Thanks for the help.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)