build: implemented auto-generation of GUID for windows installer
This commit is contained in:
@@ -3,19 +3,27 @@ VERSION_STRING="${VERSION_STRING//-/_}"
|
||||
VERSION_STRING="${VERSION_STRING//./_}"
|
||||
VERSION_STRING="${VERSION_STRING%_*}"
|
||||
VERSION_STRING="${VERSION_STRING//_/.}"
|
||||
|
||||
echo "installer version is $VERSION_STRING"
|
||||
|
||||
PRODUCT_GUID=$(cmd.exe /c "VsDevCmd.bat & uuidgen")
|
||||
echo "product guid is $PRODUCT_GUID"
|
||||
|
||||
rm -rf build
|
||||
mkdir build
|
||||
|
||||
|
||||
|
||||
rm -rf ../../../bin/app/data/install/uninstall_wix.bat
|
||||
echo $"%windir%\system32\msiexec.exe /x {$PRODUCT_GUID}" >../../../bin/app/data/install/uninstall_wix.bat
|
||||
|
||||
|
||||
"devenv.com" Setup/build/Setup.sln //build "Release|x86"
|
||||
"devenv.com" CustomActions/CustomActions.sln //build "Release|x86"
|
||||
|
||||
rm -rf bin
|
||||
mkdir bin
|
||||
|
||||
candle.exe -dprojectVersion="$VERSION_STRING" coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
|
||||
candle.exe -dprojectVersion="$VERSION_STRING" -dprojectGuid="$PRODUCT_GUID" coati.wxs customActions.wxs dialogShortcuts.wxs installDir.wxs appDataDir.wxs -out build/ > build/compileLog.txt
|
||||
light.exe -ext WixUIExtension build/coati.wixobj build/customActions.wixobj build/dialogShortcuts.wixobj build/installDir.wixobj build/appDataDir.wixobj -out build/coati.msi > build/linkLog.txt
|
||||
|
||||
cp -u -r build/coati.msi bin
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
<Product Name='Coati'
|
||||
Manufacturer='Coati Software OG'
|
||||
Id='F8BA9656-DE2E-4925-9CF4-C43285A2CA6E'
|
||||
Id='$(var.projectGuid)'
|
||||
UpgradeCode='6DAB9E05-6E5B-4D26-A2A0-8F1757F2A4EF'
|
||||
Language='1033'
|
||||
Codepage='1252'
|
||||
Codepage='1252'
|
||||
Version='$(var.projectVersion)'>
|
||||
|
||||
<Package Id='*' Keywords='Installer' Description="Coati Installer"
|
||||
|
||||
Reference in New Issue
Block a user