[wix-users] Custom Action with Deferred Execution and No Impersonate in UISequence

KONDURU Pavan Pavan.KONDURU at 3ds.com
Wed Oct 7 14:41:12 PDT 2015


As far as I know, NO.
They Should be placed between install initialize and install finalize.

--Pavan
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Kubilay Özisik
Sent: Wednesday, October 07, 2015 2:38 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Custom Action with Deferred Execution and No Impersonate in UISequence

Is it not possible to run a Custom Action deferred execution before the  ExecuteAction phase? or which phases can I run these batches?

I'm OK with the batches for now. Later on, there will be changes but now I need to run those actions from UI Sequence. Do you know how ?

On 8 October 2015 at 00:29, John Cooper <JoCooper at jackhenry.com> wrote:

> There are much better ways to accomplish these tasks.  See
> NETFRAMEWORK45 and other properties in the NetFx extension.  See the
> IIS Extension.  See the SQL Extension.  See a tutorial on writing a C++ or C# custom action.
>
> I support 27 installers for 6 teams (including one outside my
> division) that accomplish all these tasks without using one line of
> batch embedded in the installer.
>
> Quite apart from the security concerns, rollback is going to be a
> major problem for this installer.  Don't do it this way.
>
> --
> John Merryweather Cooper
> Senior Software Engineer | Integration Development Group | Enterprise
> Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS
> 66214 | Ext:  431050 | JoCooper at jackhenry.com
>
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> Behalf Of Kubilay Özisik
> Sent: Wednesday, October 7, 2015 4:15 PM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] Custom Action with Deferred Execution and No
> Impersonate in UISequence
>
> The e-mail below is from an external source.  Please do not open
> attachments or click links from an unknown or suspicious origin.
>
> 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
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
> NOTICE: This electronic mail message and any files transmitted with it
> are intended exclusively for the individual or entity to which it is
> addressed. The message, together with any attachment, may contain
> confidential and/or privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure or
> distribution is strictly prohibited. If you have received this message
> in error, please immediately advise the sender by reply email and
> delete all copies.
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/




--
--
--

Kubilay Özışık
tel.          +90 534 689 94 80 (TR)
skype     :kubilay.ozisik
twitter     : kubilayozisik

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer


More information about the wix-users mailing list