PDA

View Full Version : Insert program variables


em00jie
10-07-2004, 04:23 AM
Hi, New person here.

I have used setup factory to successfully package my program in the past but I now have a need to take the installation to another level.

Is is possible for the user to give me variables to insert into a module in my VB program?

What I need is for the the user to enter information to be used as a string in my module...for example the user to input info such as:

IP Address
Database name
Username
Password

Its just that for every install i now do I have to manually input this into the program then re-package it with SF.

Any help would be greatly appreciated.

thanks

em.

JimS
10-07-2004, 04:59 AM
I’m not a VB programmer yet, so I can’t say for sure, but if your VB program can read variables from either a text file, an .INI file, or a registry key, then you should be able to do it. SUF can write to all of those.

You can also use Shell.Execute and pass arguments to your VB app on start, or dynamically write out a .bat file, and execute it.

Hopefully at least one of those ways will work for what you need.

Brett
10-07-2004, 09:21 AM
Jim is right on. Basically just write the values out somewhere that your appcan pick them up.