[wix-users] Custom Action with Deferred Execution and No Impersonate in UISequence
Kubilay Özışık
kubi.ozi at gmail.com
Wed Oct 7 14:15:29 PDT 2015
Hi there,
I have some batch files and need to run under administrator privileges. For
that, I make the impersonate=no, and it forces me to make execute=deferred.
Now, I can't call the CA before the installation. How do I make this work?
Which sequences can I use for deferred execution and no impersonate?
What I have so far is:
<UIRef Id="MyWebUI" />
<Binary Id='CMDEXE' SourceFile='C:\WINDOWS\System32\cmd.exe' />
<!-- BATCHES BEFORE THE INSTALLATION -->
<CustomAction Id="CHECKFRAMEWORK" BinaryKey="CMDEXE" Impersonate="no"
Execute="deferred" ExeCommand='/k "fixframework.bat"' Return="ignore" />
<CustomAction Id="ENABLEIIS" BinaryKey="CMDEXE" Impersonate="no"
Execute="deferred" ExeCommand='/k "fixiis.bat"' Return="ignore"/>
<!-- BATCHES AFTER THE INSTALLATION -->
<CustomAction Id="FIXHOST" BinaryKey="CMDEXE" Execute="deferred"
Impersonate="no" ExeCommand='/k "fixhost.bat"' Return="ignore" />
<CustomAction Id="CREATEDB" BinaryKey="CMDEXE" Execute="deferred"
Impersonate="no" ExeCommand='/k "init-db.bat"' Return="ignore" />
<CustomAction Id="INSTALLPANNINUPLOADER" BinaryKey="CMDEXE"
Impersonate="no" Execute="deferred" ExeCommand='/k "install-service.bat"'
Return="ignore" />
<InstallUISequence>
<Custom Action="CHECKFRAMEWORK" After="AppSearch" />
<Custom Action="ENABLEIIS" After="CHECKFRAMEWORK" />
<Custom Action="FIXHOST" After="ExecuteAction"/>
<Custom Action="CREATEDB" After="FIXHOST"/>
<Custom Action="InstallUploader" After="CREATEDB"/>
</InstallUISequence>
--
--
--
Kubilay Özışık
tel. +90 534 689 94 80 (TR)
skype :kubilay.ozisik
twitter : kubilayozisik
More information about the wix-users
mailing list