Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setup wizard question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156968
Message ID:
00157360
Vues:
34
>I use the setup wizard in VFP 6.0 to create the setup files for distribution. The wizard allows you to choose those files you wish to appear in the program group folder that you want created. This is very nice, but I can only enter the command line (target as it appears when viewing the shortcut properties)information and I wish to also enter the Start in directory information. Does any one have any ideas on how this can be done or if I am missing something in the setup wizard. I like what it does for me but I need it to go just a step farther.
>
>TIA

Well I found a solution to this, it may be ugly, but it could help others. The setup wizard creates a file called setup.stf, inside of that is a section that deals with the program group items I wish e.g:

51 Yes Program Manager Icon AddProgmanItem "NSWC_Cra, NSWC_Amm, %s\code40\c40help.hlp, """", """",""""," %D
52

I manually edited the line to become:

51 Yes Program Manager Icon AddProgmanItem "NSWC_Cra, NSWC_Amm, %s\code40\c40help.hlp, ""%s\code40"", """",""""," %D
52

This filled in the start in directory that I needed with the value that I wanted.

One other file that has to be edited is setup.inf and you have to find the entry for the setup.stf file and how many bytes it has. It looks like:

1,SETUP.STF,,,,1998-11-12,!DECOMPRESS,,OLDER,,,SETUP.STF,,,,4572,,,,,!VITAL

The 4572 is the number of bytes it expects to find in the file, when I updated the setup.stf file with my start in folder data I increased the size in bytes of the file and I had to go into the setup.stf file and adjust what is to be expected. If you dont then the setup.exe program will error with a corruption notice.

This seemed to work well and I have since made a distribution CD and the setup program and post executable program worked great, program group entries were created and default directories were in place.

I hope this helps someone who needed to do what I did in the future.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform