Hello, 

It works, I had hoped that the shell execution had "inherited" the privileges 
from the installer, so I didn't have to accept that the application ran (it 
requires elevated privileges). That is not the problem, it is at worst a minor 
nuisance. 

However, I need to pass at least one command-line argument to the application, 
like I wrote below, but the way I illustrated it does not work. I just got a 
2896 error. 

So using the method described, how do I pass one or more command-line arguments 
to the application from the installer?

Thanks, 

Thomas Due


-----Original Message-----
From: Thomas Due [mailto:t...@scanvaegt.dk] 
Sent: 17. oktober 2011 08:39
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Executing an application after installation

Yeah, 

I found it here though: 
http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

And I can see it does it in a different way, so I will test this and see if it 
solves my problem. 
A question though: 

I need to pass one or more parameters to the application as command-line 
parameters. How do I do that? 


I have this: 

<Component Id="ComponentMainConfig" Guid="*" DiskId="1">
    <File Id="MasterConfig" Source="$(var.BuildPath)ScanXNET\MasterConfig.exe" 
KeyPath="yes"/>
</Component>

...

<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" 
Value="LaunchConfig" Order="999">NOT Installed</Publish>

...

<Property Id="WixShellExecTarget" Value="[#MasterConfig]" />
<CustomAction Id="LaunchConfig" BinaryKey="WixCA" DllEntry="WixShellExec" 
Impersonate="yes" />

Do I simply add the parameters to the property value, like this: 

Value="[#MasterConfig] -lan=[INSTALLLANGUAGE]"

Thanks, 

Thomas Due



-----Original Message-----
From: John Cooper [mailto:jocoo...@jackhenry.com] 
Sent: 14. oktober 2011 15:06
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Executing an application after installation

Interesting, the link "How To:  Run the Installed Application After Setup" 
seems to be dead in the wix.chm.
--
John M. Cooper

-----Original Message-----
From: Thomas Due [mailto:t...@scanvaegt.dk] 
Sent: Friday, October 14, 2011 4:07 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Executing an application after installation

Hello, 

I can't seem to find it in the docs? 

/Thomas Due

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com]
Sent: 13. oktober 2011 15:55
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Executing an application after installation

Did the WiX documentation not help you?  This case is explicitly called out.

On Thu, Oct 13, 2011 at 1:55 AM, Thomas Due <t...@scanvaegt.dk> wrote:

> Hello,
>
> I have a configuration application that I wish to run always after my 
> installer have completed.
> I don't want to have the application start until I close the installer.
> The application is installed into the INSTALLDIR location.
>
> The custom action is defined like this:
>
> <CustomAction Id="LaunchConfig"
>              FileKey="MasterConfig"
>              Return="asyncNoWait" />
>
> And called when the ExitDialog exits:
>
> <Publish Dialog="ExitDialog"
>         Control="Finish"
>         Event="DoAction"
>         Value="LaunchConfig" Order="999"> NOT Installed</Publish>
>
> This works like a charm in Windows XP, but in Windows 7 (with the UAC
> enabled) nothing happens.
> I assume that the UAC somehow blocks this action, which is what it is 
> supposed to do normally, I guess.
>
> However since my installer requires elevated priviliges I don't 
> understand why it is not possible to run the application.
>
> What can I do to ensure that the application will always execute, even 
> on Windows 7 with the UAC enabled?
>
> Thank you,
>
> Thomas Due
>
>
>
>
> ----------------------------------------------------------------------
> -------- All the data continuously generated in your IT infrastructure 
> contains a definitive record of customers, application performance, 
> security threats, fraudulent activity and more. Splunk takes this data 
> and makes sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity and more. Splunk takes this data and makes sense of it. 
Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
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.








------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to