This repository has been archived by the owner on Sep 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[medium] Windows MSI packaging of the agent
- Loading branch information
Showing
6 changed files
with
103 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version='1.0' encoding='windows-1252'?> | ||
<?define ProductVersion = "REPLACE_WITH_MIG_AGENT_VERSION"?> | ||
<?define ProductUpgradeCode = "00e305bd-5758-4c13-b3da-80cda1c5517e"?> | ||
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> | ||
|
||
<Product Name='Mozilla InvestiGator Agent' | ||
Version='$(var.ProductVersion)' | ||
Id='4a53b243-8405-4a1f-a85a-05cd21428206' | ||
UpgradeCode='$(var.ProductUpgradeCode)' | ||
Language='1033' | ||
Manufacturer='Mozilla'> | ||
|
||
<Package Comments='MIG Agent' InstallerVersion='100' Compressed='yes'/> | ||
|
||
<Media Id='1' Cabinet='product.cab' EmbedCab='yes' /> | ||
|
||
<Property Id="ARPHELPLINK" Value="http://mig.mozilla.org"/> | ||
<Property Id="ARPURLINFOABOUT" Value="http://mig.mozilla.org"/> | ||
<Property Id="ARPNOREPAIR" Value="1"/> | ||
<Property Id="ARPNOMODIFY" Value="1"/> | ||
|
||
<Upgrade Id="$(var.ProductUpgradeCode)"> | ||
<UpgradeVersion Minimum="$(var.ProductVersion)" | ||
OnlyDetect="yes" | ||
Property="NEWERVERSIONDETECTED"/> | ||
<UpgradeVersion Minimum="00000000-0" | ||
Maximum="$(var.ProductVersion)" | ||
IncludeMinimum="yes" | ||
IncludeMaximum="no" | ||
Property="OLDERVERSIONBEINGUPGRADED"/> | ||
</Upgrade> | ||
<Condition Message="A newer version of this software is already installed.">NOT NEWERVERSIONDETECTED</Condition> | ||
|
||
<Directory Id='TARGETDIR' Name='SourceDir'> | ||
<Directory Id='ProgramFiles64Folder'> | ||
<Directory Id='INSTALLDIR' Name='mig'> | ||
<Component Id='MainExecutable' Guid='9525c416-04b8-4bed-9567-ff6fb7dd4ea9'> | ||
<File Name='mig-agent-$(var.ProductVersion).exe' | ||
Id='25ac5e4f-3f70-4e21-9389-7e5fcd6fde9d' | ||
DiskId='1' | ||
Source='mig-agent-$(var.ProductVersion).exe' | ||
KeyPath='yes'/> | ||
</Component> | ||
</Directory> | ||
</Directory> | ||
</Directory> | ||
|
||
<Feature Id='Complete' Level='1'> | ||
<ComponentRef Id='MainExecutable' /> | ||
</Feature> | ||
<!-- | ||
<Binary Id="MIGAgent" SourceFile="mig-agent-$(var.ProductVersion).exe" /> | ||
<CustomAction Id='ExecMigAgent' | ||
Execute='deferred' | ||
BinaryKey="MIGAgent" | ||
Return='ignore'/> | ||
<InstallExecuteSequence> | ||
<Custom Action='ExecMigAgent' Before="InstallFinalize"/> | ||
</InstallExecuteSequence> | ||
--> | ||
</Product> | ||
</Wix> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,5 +109,5 @@ exit: | |
} | ||
|
||
func getRunDir() string { | ||
return `C:\Windows\` | ||
return `C:\Program Files\mig\` | ||
} |
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
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