summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-03-08 13:15:35 (GMT)
committer Mario Fetka <[email protected]>2013-03-08 13:15:35 (GMT)
commitf2351a2f1daed6c85a06b7e163a74ddc582bcc35 (patch)
treed1e3e108a377c7245f873d773f233f9241f5a5d4
parent79d3176b78f271e4901318c20ea455262ef74464 (diff)
Touch ini file if not exist
-rw-r--r--lib/builder-utils.sh3
-rw-r--r--sample/All/CLIENT_DATA/delsub64.ins2
2 files changed, 4 insertions, 1 deletions
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

Powered by Domaintechnik.at | Hosting - Domain - Webspace