Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Unsorted registration


1 reply to this topic

shishircomp

shishircomp
  • Members
  • 1 posts

Posted 20 September 2006 - 08:04

i am trying to register files in an unsorted order in installshield Professional Edition.
in installshield when we add files they are arranged in sorted order but i want to register them in an unsorted order which i will defined.

how can i do that?

Please help

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 20 September 2006 - 14:35

If I understand your question about registering files in a specific order, then you can achieve that through InstallScript code.

To do this, I suggest modify the OnFirstUIAfter function/event with your custom registration code. To access this area, select "After Move Data" & "First UI After" from the drop-down toolbar menus.

For DLLs, that registration code would be the following:
CODE
nResult = LaunchAppAndWait("regsvr32", "/s"+" "+szFilename, WAIT);

where szFilename contains the DLL name along with its relative/absolute path.

For EXEs, that registration would be the following:
CODE
nResult = LaunchAppAndWait(szProgram, " /regserver", WAIT);

where szProgram contains the EXE name along with its relative/absolute path.

Continue making the appropriate calls until you've gone through your entire list of self-registering files.
user posted image