Wix Disigner does such project.wsx

But I need to modify config file with parametr which is setted in the
settings dialog.
It does not work also. All my custom auction start without admin
rights, but directory in program files is created with admin rights
and UAC showing....


2014-05-06 20:36 GMT+04:00, Phil Wilson <phildgwil...@gmail.com>:
> It looks like that's a direct migration from a Visual Studio setup
> project to WiX. The VS setups don't offer all the features that WiX
> does, and in this case you probably don't need your own code to copy
> files. Use the <CopyFile> element in WiX. Also, you don't need
> -install types of command lines to install services if it's just
> another Windows service. VS did not provide the ServiceInstall and
> ServiceControl elements that WiX does.
> ---------------
> Phil Wilson
>
>
> On Tue, May 6, 2014 at 5:17 AM, Aleksey Tikhonov
> <lekseytikho...@gmail.com> wrote:
>> Hello!
>>
>>
>> I have wxs project file:
>>
>> <Product Id="$(var.ProductCode)" Name="$(var.ProductName)"
>> Language="1049" Codepage="1251" Version="$(var.ProductVersion)"
>> Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)">
>>     <Package InstallerVersion="200" Compressed="yes" AdminImage="yes"
>> InstallScope="perMachine" />
>>
>> ...
>>
>> My Custom actions:
>>
>> <CustomAction Id="VSDCA_FolderForm_AllUsers"
>> Property="FolderForm_AllUsers" Value="ALL" />
>>     <CustomAction Id="_3D169966_7F4D_439B_8537_BD70D91919BA"
>> Execute="deferred" FileKey="_2EFFD1DC_7915_4BB8_9CBB_5EA8A904EBC3"
>> adx:VSName="ProjService.exe" ExeCommand="-uninstall" />
>>     <CustomAction Id="_305A6029_72A4_489A_8231_A0220BE7101E"
>> Execute="deferred" FileKey="_2EFFD1DC_7915_4BB8_9CBB_5EA8A904EBC3"
>> adx:VSName="ProjService.exe" ExeCommand="-install" />
>>     <CustomAction Id="_59E2C944_6709_459D_9DBE_88945EBFA44C"
>> Execute="deferred" FileKey="_A2D15616_D4F4_447A_B3D2_4F41E4696152"
>> adx:VSName="CheckOs.dll Save parametrs" DllEntry="SaveParametrs" />
>>     <CustomAction
>> Id="_59E2C944_6709_459D_9DBE_88945EBFA44C.SetProperty"
>> Property="_59E2C944_6709_459D_9DBE_88945EBFA44C"
>> Value="[TARGETDIR]|[SERVERSANDPORTS]" />
>>     <CustomAction Id="_AB08B803_44E2_49A9_9413_45FAB63CEA4D"
>> Execute="deferred" FileKey="_A2D15616_D4F4_447A_B3D2_4F41E4696152"
>> adx:VSName="CheckOs.dll Show warning messages"
>> DllEntry="ShowWarningMessages" />
>>     <CustomAction Id="_1D5A2ADF_9073_427C_9E29_35D656BAC599"
>> Execute="deferred" FileKey="_A2D15616_D4F4_447A_B3D2_4F41E4696152"
>> adx:VSName="CheckOs.dll Check X64" DllEntry="CanInstall" />
>>     <CustomAction
>> Id="_1D5A2ADF_9073_427C_9E29_35D656BAC599.SetProperty"
>> Property="_1D5A2ADF_9073_427C_9E29_35D656BAC599" Value="[TARGETDIR]"
>> />
>>     <CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR"
>> Value="[ProgramFilesFolder]ProjClient" Execute="firstSequence" />
>>
>> And InstallExecuteSequence:
>>
>> <InstallExecuteSequence>
>>       <Custom Action="DIRCA_TARGETDIR"
>> Before="CostInitialize"><![CDATA[TARGETDIR = ""]]></Custom>
>>       <Custom Action="_1D5A2ADF_9073_427C_9E29_35D656BAC599.SetProperty"
>> After="StartServices"><![CDATA[$comp_A0CCA35C_322E_4040_AD3F_AE7AB4382C73>2]]></Custom>
>>       <Custom Action="_1D5A2ADF_9073_427C_9E29_35D656BAC599"
>> After="_1D5A2ADF_9073_427C_9E29_35D656BAC599.SetProperty"><![CDATA[$comp_A0CCA35C_322E_4040_AD3F_AE7AB4382C73>2]]></Custom>
>>       <Custom Action="_AB08B803_44E2_49A9_9413_45FAB63CEA4D"
>> After="_1D5A2ADF_9073_427C_9E29_35D656BAC599"><![CDATA[$comp_A0CCA35C_322E_4040_AD3F_AE7AB4382C73>2]]></Custom>
>>       <Custom Action="_59E2C944_6709_459D_9DBE_88945EBFA44C.SetProperty"
>> After="_AB08B803_44E2_49A9_9413_45FAB63CEA4D"><![CDATA[$comp_A0CCA35C_322E_4040_AD3F_AE7AB4382C73>2]]></Custom>
>>       <Custom Action="_59E2C944_6709_459D_9DBE_88945EBFA44C"
>> After="_59E2C944_6709_459D_9DBE_88945EBFA44C.SetProperty"><![CDATA[$comp_A0CCA35C_322E_4040_AD3F_AE7AB4382C73>2]]></Custom>
>>       <Custom Action="_305A6029_72A4_489A_8231_A0220BE7101E"
>> After="_59E2C944_6709_459D_9DBE_88945EBFA44C"><![CDATA[$comp_B2547267_A9C5_4B8B_AA20_4380CCF78AAD>2]]></Custom>
>>       <Custom Action="_3D169966_7F4D_439B_8537_BD70D91919BA"
>> After="MsiUnpublishAssemblies"><![CDATA[$comp_B2547267_A9C5_4B8B_AA20_4380CCF78AAD=2]]></Custom>
>>     </InstallExecuteSequence>
>>
>> My custom auction do CopyFile in Program Files directory.
>> I have UAC with maximum level. I run my msi, welocome dilog and select
>> target dir dialod are showing, after press next UAC is showing, after
>> the main directory in program files is created, but after my custom
>> actions is called without admin rights and I can not copy additinal
>> file to target dir.
>>
>> If I disable UAC then msi is work correctly and my custom action is
>> run with admin right. How to fix?
>>
>> Please help.
>> Thanks.
>>
>> ------------------------------------------------------------------------------
>> Is your legacy SCM system holding you back? Join Perforce May 7 to find
>> out:
>> &#149; 3 signs your SCM is hindering your productivity
>> &#149; Requirements for releasing software faster
>> &#149; Expert tips and advice for migrating your SCM now
>> http://p.sf.net/sfu/perforce
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> &#149; 3 signs your SCM is hindering your productivity
> &#149; Requirements for releasing software faster
> &#149; Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to