Announcement

Collapse
No announcement yet.

Upgrade Issue Setup Factory 5 to version 9

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

  • Upgrade Issue Setup Factory 5 to version 9

    Hello, I am converting over my setup from Setup Factory 5 to Setup Factory 9.5. One of the items that I need to run is Regsvr32 to register some items for my application. I have in pictures 1 and 2 the actual version 5 setup. Then in the third picture is how I think it needs to run in version 9.5. However, there is not a test button so I am not 100% sure I am in the correct place. Can you confirm for me?

    Thanks,
    Frank

  • #2
    If you need to register a component, use the option provided in the UI instead of adding code. Double click the desired file in the Archive list to open the Properties dialog. Then, on the Advanced tab, you will find the options to register the component on the target system.

    Click image for larger version

Name:	SCRN-2022-07-28-01.png
Views:	140
Size:	31.6 KB
ID:	308983

    This will also un-register the component when the product is uninstalled.

    I am also unsure about this "DataSheet" dependency you added, shown in the screenshot. Did you construct a dependency module detection and installation scripts?

    Ulrich

    Comment


    • #3
      Hey Ulrich,

      Thank you that works for what I am trying to do. One question on the "Conditions" tab there is a "Script Condition" is that where I can put optional switches for the registration of these items if needed? It seems to be but wanted to be sure.

      Thanks,
      Frank

      Comment


      • #4
        The script condition is for setting a condition on the installation of the file. For example, you could have a file which should only be installed only if a certain information could be found in the registry, of if a certain selection was made in the screens.

        In the rare cases when a command line argument needs to be passed, you would run regsvr32.exe with File.Run(). Example:

        Code:
        File.Run(SessionVar.Expand("%SystemFolder%\\regsvr32.exe"), SessionVar.Expand("%AppFolder%\\my-component.dll") .. " /i:my-command-line", "", SW_HIDE, true);
        Click image for larger version

Name:	SCRN-2022-07-28-02.png
Views:	116
Size:	16.7 KB
ID:	308986

        Ulrich

        Comment

        Working...
        X