diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh index 6c693b3..06b332e 100644 --- a/lib/builder-utils.sh +++ b/lib/builder-utils.sh @@ -313,6 +313,9 @@ write_ini_file() { local ini_file=$1 local var_file=$2 + # create file if not exist + touch $ini_file + # publish some other variables for var in VENDOR PN VERSION RELEASE TYPE CREATOR_TAG CREATOR_NAME CREATOR_EMAIL ; do $CMD_iniset $ini_file --COMMON ${var}="${!var}" diff --git a/sample/All/CLIENT_DATA/delsub64.ins b/sample/All/CLIENT_DATA/delsub64.ins index 3967508..891faba 100644 --- a/sample/All/CLIENT_DATA/delsub64.ins +++ b/sample/All/CLIENT_DATA/delsub64.ins @@ -15,7 +15,7 @@ if FileExists($UninstallProgram$) sub_check_exitcode endif if FileExists($IniFile$) - Set $MsiIdOld$ = GetValueFromInifile($IniFile$,"X86","MsiId","{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}") + Set $MsiIdOld$ = GetValueFromInifile($IniFile$,"X86_64","MsiId","{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}") if not (GetRegistryStringValue32("[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" + $MsiIdOld$ + "] DisplayName") = "") comment "Old MSI id " + $MsiIdOld$ + " found in registry, starting msiexec to uninstall old version" Winbatch_uninstall_msi_old