Announcement

Collapse
No announcement yet.

License agreement and Uninstall questions

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • License agreement and Uninstall questions

    I have a couple questions regarding SF5.0:
    1. Is there any way to grab the text for installer's license agreement screen from a file instead of having it embedded in the .sf5 project file? I'm going to include a license text file in the root of the Appdir anyway, so I'd prefer not to have to edit it to places when I want to make a change.
    2. What is the easiest way to totally remove all the files from the %Appdir% during uninstall? In my cases some files and directories end up there, whose names are not predetermined, so I cannot explicit delete them. I've currently got a Delete %Appdir%\*.* operation included in the uninstall portion of the project, but that does not remove subdirectories. I tried to do a Remove Directory operation on %AppDir% and that also leaves files the project doesn't know about behind. I also tried add a shell operation rmdir /s /q %Appdir%, but apparently that tries to delete to uninstall configuration files which crashes the uninstall process. Any suggestions? Thanks for any help you can give.

  • #2
    Re: License agreement and Uninstall questions

    Hi,

    1) The only way to read the information from a text file into your Project would to read it in using an INI file command. I would not recommend using this method though, I think the best way would be to simply maintain both.

    2) What you will have to do is make sure that all sub-directories are empty. Setup Factory will not remove a directory unless the directory is completely empty. So what you could do is go through each subdirectory, delete all the files (using the '*.*' wildcard) and then remove the subdirectory.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎