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
- :
- convert vbscript to powershell
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
Jun 06, 2024
02:49 AM
Hi,
I am trying to get IS_MAJOR_UPGRADE property from powershell CA (Immediate Execution, 64 bit run).
get-property -name IS_MAJOR_UPGRADE does not seems to get it.
Using vbscipt I could get it from Session.Property("IS_MAJOR_UPGRADE").
Thank you,
Regards,
Sangeetha
(1) Solution
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 09, 2024
11:35 PM
$major_up = get-property -name IS_MAJOR_UPGRADE worked.
To record it in installlog had failed before (error creating message).
trace-info -LogMessage $major_up -- worked
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 06, 2024
11:51 AM
Hi,
I tried using $Session.Property("IS_MAJOR_UPGRADE") as you had suggested, but still it does not work..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 09, 2024
11:35 PM
$major_up = get-property -name IS_MAJOR_UPGRADE worked.
To record it in installlog had failed before (error creating message).
trace-info -LogMessage $major_up -- worked