Not sure if I’m doing something wrong here or not, but here is what I have going on. I’m first trying to uninstall all old versions of Cisco Jabber via productCode & then if registry key’s get left behind remove the registry key’s that correspond with the old version. When I run the “registry key” removal piece in its own fixlet/task it works just fine, however when I run it as part of this fixlet I have setup it no longer works. Can anyone tell me if I’m simply missing something? Not understanding why it works one way & not the other. Below is the entire action script if needed.
//**Begin Preparation Marker
// Download all specified files
begin prefetch block
add prefetch item name=858D702CF2115462F074010216933E106051DA34 sha1=858d702cf2115462f074010216933e106051da34 size=56932864 url=SWDProtocol://127.0.0.1:52311/uploads/858D702CF2115462F074010216933E106051DA34/CiscoJabberSetup.msi.bfswd sha256=b7943476c86804c62fe879b1d5ea8cf7b0f2c065fe05f05ff2812e12aa47a18b
end prefetch block
// All SWD files will go into a folder in the clients __BESData folder. This folder gets cleared on every restart.
parameter “baseFolder” = “__Download/”
// Move files into subfolders and unescape file names
move “__Download/858D702CF2115462F074010216933E106051DA34” “{parameter “baseFolder”}CiscoJabberSetup.msi”
// Log setup
parameter “mainSWDLogFolder” = "{parent folder of client folder of current site}/__Global/SWDDeployData"
folder create "{parameter “mainSWDLogFolder”}"
parameter “logFile” = “SWD_DeploymentResults.log”
//**End Preparation Marker
delete __createfile
parameter “logFolder” = “{parameter “mainSWDLogFolder”}”
// Run setup process
delete run.bat
// Use .bat to set working directory to packages root, for setup command.
createfile until end
@ECHO OFF
cd "{parameter “baseFolder”}"
rem // See comments at the beginning of this action for an explanation of the comment markers.
set DATESTAMP=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
set DATEANDTIME=%DATESTAMP% %time%
echo %DATEANDTIME% >> "{parameter “logFolder”}/{parameter “logFile”}"
echo Action ID: {id of active action} >> “{parameter “logFolder”}/{parameter “logFile”}”
// Removal of Old Versions
msiexec /x{{E40E5136-0E9B-4397-A723-8CF4BA09511F} /Q /lv C:\jabberUn913.txt
msiexec /x{{94DB202A-D7DA-4E49-B3AC-2B8C37A3B7DE} /Q /lv C:\jabberUn920.txt
msiexec /x{{1A969528-C04F-4B8E-B3B4-8EF51E781E19} /Q /lv C:\jabberUn960.txt
msiexec /x{{0705CE47-12C7-4B51-8585-C9463074B6CE} /Q /lv C:\jabberUn970.txt
delete __appendfile
delete temp.reg
appendfile REGEDIT4
action uses wow64 redirection false
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\6315E04EB9E079347A32C84FAB9015F1]
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\A202BD49AD7D94E43BCAB2C8733A7BED]
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\825969A1F40CE8B43B4BE85FE187E191]
appendfile [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\74EC50707C2115B458589C6403476BEC]
move __appendfile temp.reg
wait regedit -s temp.reg
rem //**Begin Command Marker
echo Command: msiexec.exe /i “CiscoJabberSetup.msi” /qn reboot=REALLYSUPPRESS TYPE=CUP /lv C:\jabber1062-%COMPUTERNAME%.log >> "{parameter “logFolder”}/{parameter “logFile”}"
set errorlevel=
msiexec.exe /i “CiscoJabberSetup.msi” /qn reboot=REALLYSUPPRESS TYPE=CUP /lv C:\jabber1062-%COMPUTERNAME%.log >> “{parameter “logFolder”}/{parameter “logFile”}” 2>&1
set SWDExitCode=%errorlevel%
rem //**End Command Marker
echo Return code: %SWDExitCode% >> "{parameter “logFolder”}/{parameter “logFile”}"
echo. >> "{parameter “logFolder”}/{parameter “logFile”}"
exit %SWDExitCode%
end
move __createfile run.bat
// You will not be able to stop or take action on an applicable BigFix Client until your installer completes.
// So ensure no user input is required.
// If your package absolutely must interact with the user, replace ‘override wait’ with ‘override run’ and ‘wait’ with ‘run’.
override wait
hidden=true
completion=job
wait run.bat
//**Begin Closing Marker
// Get the return code of the previous action.
parameter “returnCode” = “{exit code of action}”
// Task will now exit.
exit {parameter “returnCode”}
//**End Closing Marker