Announcement

Collapse
No announcement yet.

Silent Unistall using INI file for systems variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Silent Unistall using INI file for systems variables

    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.

  • #2
    Just a thought - is the file really named "UnistallOptions.ini", instead of "UninstallOptions.ini"? Could be a simple matter of a typo...

    Ulrich

    Comment


    • #3
      Originally posted by Ulrich View Post
      Just a thought - is the file really named "UnistallOptions.ini", instead of "UninstallOptions.ini"? Could be a simple matter of a typo...

      Ulrich
      :-) It's a typo but in the post. I used copy and paste in the real tests to make sure I had the same spelling for the file and the command line. I also tried with the file called by the same name as in the help file (using copy and paste) just in case the file had to be called "setupvars.ini".

      Comment


      • #4
        Thank you for the confirmation. I could replicate the issue you are reporting, and will file a bug report right away.

        Ulrich

        Comment


        • #5
          Originally posted by Ulrich View Post
          Thank you for the confirmation. I could replicate the issue you are reporting, and will file a bug report right away.

          Ulrich
          Thanks Ulrich. Do you have any insight of when a fix might be ready as I have a customer breathing down my neck.

          Best regards,
          Adrian.

          Comment

          Working...
          X