Announcement

Collapse
No announcement yet.

dos based exe

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

  • dos based exe

    i made a sf6 setup for one exe file. it's a dos based viewer. so far i have found that after an uninstall the shortcut on the start menu does not get removed.

    any ideas ?

    i tried win32 apps and they get removed ok.


    (i edited a spelling mistake only...)

    [This message has been edited by Kimbo (edited 03-12-2002).]

  • #2
    Re: dos based exe

    Hi,

    You will probably have to delete the file yourself. When you make a shortcut to a DOS based program in windows it converts the shortcut from a *.LNK file into a *.PIF file. So when Setup Factory goes to delete it, it cannot find it.

    Try adding a Delete File command to your uninstall and point it to your shortcut, with the *.PIF extension.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: dos based exe

      ah, i see.. that sounds about right....

      thanks....

      i will do as suggested.

      Comment


      • #4
        Re: dos based exe

        ok i can now remove the shortcut from the desktop with the:

        Delete Files (C:\Windows\desktop\Software 2002.pif)

        command, which i placed in the uninstall/after uninstall section. but try as i might i can not get the start menu shortcut to go. after which i also want to remove the empty directory.

        i tried all the delete/remove commands and no good. if i try to remove the directory whilst this one file shortcut remains i get an "access denied error", which makes sense. can a directory be force removed even if there are shortcuts in it ?

        The offending directory is:

        C:\WINDOWS\Start Menu\Programs\Software 2002\

        and the file is:

        C:\WINDOWS\Start Menu\Programs\Software 2002\Software 2000.pif


        help please.....

        thanks...

        [This message has been edited by Kimbo (edited 03-12-2002).]

        Comment


        • #5
          Re: dos based exe

          Hi,

          Try removing:

          %SCFolderPath%\Software 2002.pif

          You also cannot remove a directory that is not empty. You also might think of turning on Verbose Error messaging on your Delete files action. What is being returned?

          mark.
          MSI Factory The Next Generation Intelligent Setup Builder

          Comment


          • #6
            Re: dos based exe

            i have turned on verbose mode.
            and i tried that command.


            MSG_ERR_REMOVE_SHORTCUT (#1, Line 2)

            Could not delete file(s).
            C:\WINDOWS\Start Menu\Programs\Software 2002\Software 2002.pif.lnk

            so from that i see that SF6 adds the extension automatically. (bug ?)

            i also tried:
            Remove Shortcut (%SCFolderPath%\Software 2002.*)

            Remove Shortcut (%SCFolderPath%\Software 2002*.*)

            Comment


            • #7
              Re: dos based exe

              DONE! I have finally fixed it!
              *********************


              3 commands added to the "Uninstall/After Uninstalling" section.

              Delete Files (C:\Windows\desktop\Software 2002.pif)
              Delete Files (C:\WINDOWS\Start Menu\Programs\Software 2002\SOFTWA~1.PIF)
              Remove Directory (C:\WINDOWS\Start Menu\Programs\Software 2002\)

              That second one was the bïtch!


              Thanks for the help Mark.




              [This message has been edited by Kimbo (edited 03-12-2002).]

              Comment


              • #8
                Re: dos based exe

                ok i will also need to be able to remove a directory if the user changes it from the default. what's the command if any ? is there a remove (empty) dir command no matter what the name is ? or how should i go about this ?

                thanks...

                Comment


                • #9
                  Re: dos based exe

                  Hi,

                  Yes you should have been using a Delete File(s) action not a Remove Shortcut action.

                  You should use the variable: %SCFolderPath% to represent: "C:\WINDOWS\Start Menu\Programs\Software 2002". If you look on the Select Shortcut Folder screen you will see that %SCFolderPath% is used to store the location that your user selected.

                  mark.
                  MSI Factory The Next Generation Intelligent Setup Builder

                  Comment

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