There is support for the difxapi in Wix itself. Look in the wix help for the
difxapp schema. Using wix built-in custom actions will be much more reliable
than running command line tools at install time.

-----Original Message-----
From: nejiba [mailto:nejiba.ta...@gmail.com] 
Sent: 22 June 2012 16:49
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] custom action with administrator privileges

Hello everybody, 

I have just started using wix and i want to execute a command wreg to install
some drivers after installation of the application. This works on an XP
machine , but on windows 7 machine it requires administrator privileges to do
it. this is my code: 

<CustomAction Id="Pop1" Property="Cmd" Value="[SystemFolder]cmd.exe"/>
    <CustomAction Id="RegisterDriver" Impersonate="no" Property="Cmd"
ExeCommand="/q /e:on /c &quot;wdreg.exe -inf file.inf install" />

    <InstallExecuteSequence>
      <Custom Action="Pop1" After="InstallFinalize">NOT Cmd</Custom>
      <Custom Action="RegisterDriver" After="Pop1" />
    </InstallExecuteSequence>

The install stops at the end and shows me an error message. And when i
execute manually the command on cmd window it shpws me the error message of
administratrator privileges so i think that the windows installer stops
because of that since it works perfectly on xp machine. 

I hope i was clear in my description and i hope to find an answer in your
forum :) thanks in advance!

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/custom-action-w
ith-administrator-privileges-tp7579039.html
Sent from the wix-users mailing list archive at Nabble.com.

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to