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
- :
- CustomAction to unzip fies doesn't work in System Context
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
Jan 19, 2021
05:05 AM
CustomAction to unzip fies doesn't work in System Context
Hello,
our Installation needs to unzip a compressed folder into INSTALLDIR. Adding the unziped files to components isn't an option because files and subfolders are changing very often.
I created a CustomAction to unzip the installed zip-file. Running the Setup as ADMINITSTRATOR worked fine, but 'objTarget.CopyHere objSource, intOptions' doesn't work as SYSTEM.
set objShell = CreateObject( "Shell.Application" )
set objSource = objShell.NameSpace( zip ).Items( )
set objTarget = objShell.NameSpace(INSTALLDIR)
intOptions = 20
objTarget.CopyHere objSource, intOptions
Any help to unzip in System Context would be great.
(0) Replies