Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Silent Unistall using INI file for systems variables

$
0
0
Hi,

I am using Setup Factory 9.5 to create my setup. I would like to use the silent uninstall command line to pass in users options as follows:
"C:\...\Uninstall.exe" "/U:C:\...\uninstall.xml" "/S:C:\...\UnistallOptions.ini"
The UnistallOptions.ini contains the following:
[UninstallValues]
%Delete_All_Settings%=1
In the uninstall Actions - On Post Uninstall I have added:
Code:

if _SilentInstall == true then
        deleteSettings = SessionVar.Get("%Delete_All_Settings%");
        SetupData.WriteToLogFile( "deleteSettings = " .. deleteSettings .. "\r\n" );
        if deleteSettings == "1" then
                deleteSettings = true;
        else
                deleteSettings = false;
        end
end

But deleteSettings always = 0. It appears the specified ini file is ignored or I am using the wrong method to get the entry.

What am I doing wrong?

Thanks,
Adrian.

Viewing all articles
Browse latest Browse all 2105

Trending Articles