Announcement

Collapse
No announcement yet.

Finding Setup Factory Install Location

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

  • Finding Setup Factory Install Location

    Putting Setup Factory into our automated build for the first time. I don't want to assume the install location, but rather find it dynamically. I don't see any "good" registry keys that indicate the install location. Could use the uninstall or the file association ones, but that doesn't seem the best fit.

    Any recommendations on the best way to find this?

    Thanks.

    Greg

  • #2
    You are trying to find the installation folder of Setup Factory itself, or your own application, deployed with Setup Factory? If you are talking about your own product, then storing the installation folder in a registry key would make sense, so upon a re-install or upgrade you would fetch the data stored on that known location, for example "HKLM\Software\Company name\Product name\Installfolder".

    Ulrich

    Comment


    • #3
      I'm looking for Setup Factory itself, so I can launch SUFDesign.exe from my build scripts.

      Greg

      Comment


      • #4
        As far as I know, Setup Factory does not expose the full path to SUFDesign.exe directly via a dedicated registry value. I have used the project file extension association data in the past, and it has always worked well for me. You can use "open" shell command, or the default icon file (for both the project file or the entry for the uninstaller in the Control Panel), both should give the desired results. Speaking of the uninstaller entry, you could parse the XML file - the full path to SUFDesign.exe can be found there. Finally, there is a "InstallLocation" value in the uninstaller entry, which you can concatenate with SUFDesign.exe to get the full path... Even if there is no direct single value, there are plenty of alternatives.

        Of course, if you don't want to have all this work, you could add the installation folder to the PATH and leave the rest to Windows...

        Ulrich

        Comment


        • #5
          Thanks Ulrich. This will be a command line launch with /BUILD and associated parameters for the automated build. Can't launch via file association for that. Can't parse the SUF file as the install location could be different than it was on the system the SUF was last edited on.

          I went with the "uninstaller" registry entry as it should be consistent.

          Setup Factory 9 Uninstall Entry
          Code:
          HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Setup Factory 9\InstallLocation
          Batch file code:
          Code:
          rem get the location of the Setup Factory folder
          FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Setup Factory 9" /v "InstallLocation" ^| FIND "REG_SZ"') DO SET SetupFactoryDir=%%B
          
          "%SetupFactoryDir%\SUFDesign.exe" /BUILD myproduct.suf /CONFIG:Default /Log:myproduct.log

          Comment

          Working...
          X