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
- :
- value of MAINTENANCE seems to be negated
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 11, 2009
07:40 PM
value of MAINTENANCE seems to be negated
When I test the value of MAINTENANCE in my Installscript, it seems to be TRUE on the first install and FALSE on uninstall, aka backwards of what is expected. Any idea why this is happening?
With my code above, I get the "MAINT MODE" message box on first install. I get "NOT MAINT MODE" when I uninstall.
I really hope I'm just doing something obvious and stupid.
function MyFunction(hMSI)
begin
if (!MAINTENANCE) then
MessageBox("NOT MAINT MODE" SEVERE);
else
MessageBox("MAINT MODE", SEVERE);
endif;
end;
With my code above, I get the "MAINT MODE" message box on first install. I get "NOT MAINT MODE" when I uninstall.
I really hope I'm just doing something obvious and stupid.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 12, 2009
11:30 AM
Hmm, I am trying to access MAINTENANCE in a deferred custom action. Does this also have to be set using a set-a-property Custom Action?
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)