Page 1 of 1
General Questions
Posted: Sun Aug 12, 2007 1:38 am
by smehaffie
1) Is there a way to create a shortcut in the startup folder so an application will start each time the user logs in?
2) I need to run a separate exe to install my SQL database (SQLPackager). I want to run it from the install CD/DVD and not have to copy the file locally to run the install. Is there a way to do this?
3) When you create a custom form, how to you tell the program what form it is after and before? What controls the order the forms are loaded?
Posted: Sun Aug 12, 2007 4:12 am
by Gizm0
1) Yes there is a way to create a shortcut wherever you want on the target machine
2) You can do this also. You can include the file you want into the Support Files or even leave it on the cd , and using MSICode easily execute it.
3) It's controlled by MSICode and Dialog commands.
Re: General Questions
Posted: Sun Aug 12, 2007 6:08 am
by pfennig
smehaffie wrote:1) Is there a way to create a shortcut in the startup folder so an
application will start each time the user logs in?
Yes, e.g when you define your setup globals use
Get Folder Location Start Menu->Startup Group into STARTUPSHORTCUTFILES
where STARTUPSHORTCUTFILES is a variable name you define. Then you can use it
to create your shortcuts.
smehaffie wrote:3) When you create a custom form, how to you tell the program
what form it is after and before? What controls the order the forms are loaded?
Have a look at how it's done with the other forms.
Create a new label at the position between the other labels where you want your form
to pop up, give it a meaningful name, then call Define dialog with the name of your form
as parameter. After that add the commands you want to be executed when the form
gets closed.
Again, just compare how the other forms are handled.
Posted: Sun Aug 12, 2007 11:27 pm
by smehaffie
Gizm0 wrote:1) Yes there is a way to create a shortcut wherever you want on the target machine
2) You can do this also. You can include the file you want into the Support Files or even leave it on the cd , and using MSICode easily execute it.
3) It's controlled by MSICode and Dialog commands.
#2) I guess my question is how do I tell it to execute from the CD, since I will not know what drive letter each users CD drive is. Is there a variable I can use to tell it to execute the file from the root of the install CD or a sub-directory on the install CD.
Posted: Mon Aug 13, 2007 8:12 am
by Tinus
Open help and look at "Pre-Defined Variables".
EXEDIR: The folder containing the setup executable itself.
Posted: Sun Oct 21, 2007 12:48 am
by smehaffie
Tinus wrote:Open help and look at "Pre-Defined Variables".
EXEDIR: The folder containing the setup executable itself.
Thanks, that is what I needed.