cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
birgit_platt
Level 2

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.

Labels (1)
0 Kudos
(0) Replies