-
-
Save mesarvagya/9f76ccd5c8507df2e3ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product Id="*" Name="SetupInstallFolder" Language="1033" Version="1.0.0.0" Manufacturer="LP" UpgradeCode="9e10a7d8-4ffb-493c-8318-c44ba4bc0c4c"> | |
<Package InstallerVersion="200" Compressed="no" InstallScope="perMachine" /> | |
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | |
<MediaTemplate /> | |
<Feature Id="ProductFeature" Title="SetupInstallFolder" Level="1"> | |
<ComponentGroupRef Id="ProductComponents" /> | |
</Feature> | |
</Product> | |
<Fragment> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="ProgramFilesFolder"> | |
<Directory Id="INSTALLFOLDER" Name="SetupInstallFolder" /> | |
</Directory> | |
</Directory> | |
</Fragment> | |
<Fragment> | |
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | |
<Component Id="SomeRandomEXE"> | |
<File Source ="G:\SarVaGYa\myworkspace\LatestLpa\lpa\lpa_c\here\src\lpa\Release\lpa.exe" /> | |
</Component> | |
</ComponentGroup> | |
<Binary Id="SetupCA2" SourceFile="G:\visual studio stuffs\SetupCAInstallFolder\SetupCAInstallFolder\bin\Release\SetupCAInstallFolder.CA.dll" /> | |
<CustomAction Id="myActionId" | |
BinaryKey="SetupCA2" | |
DllEntry="InstallFolderFinder" | |
Execute="deferred" | |
Return="check" /> | |
<CustomAction Id="SetCustomActionDataValue" Return="check" | |
Property="myActionId" Value="INSTALLEDPATH=[INSTALLFOLDER]" /> | |
<!-- This is working--> | |
<InstallExecuteSequence> | |
<Custom Action="SetCustomActionDataValue" Before="myActionId" /> | |
<Custom Action="myActionId" Before="InstallFinalize" /> | |
</InstallExecuteSequence> | |
</Fragment> | |
</Wix> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment