Click to See Complete Forum and Search --> : Creating Short cut after installing the installer file
ocw
Jan 5th, 2006, 03:03 AM
hihi.,.
i am not sure if i am in the right forum, i applogise. How can i do during the project packaging so that it creates a short cut after running the installation file.
???
ocw
RobDog888
Jan 5th, 2006, 03:05 AM
Which packager program are you using?
ocw
Jan 5th, 2006, 03:10 AM
Which packager program are you using?
i am currently using the Visual Basic Pro default packager. If there is a better, i am willing to try. THanks..
???
ocw
RobDog888
Jan 5th, 2006, 03:14 AM
You mean the Package and Deployment Wizard for VB 6? If so then you need to either write the code in your app to create it during its startup or modify the P&D Wizards project and compile a custom version that will include the create shortcut code.
moved from Classic VB forum. :)
ocw
Jan 5th, 2006, 03:17 AM
You mean the Package and Deployment Wizard for VB 6? If so then you need to either write the code in your app to create it during its startup or modify the P&D Wizards project and compile a custom version that will include the create shortcut code.
moved from Classic VB forum. :)
hihi.. is there any better packager Wizards that is good for packaging up the project?
???
ocw
RobDog888
Jan 5th, 2006, 03:18 AM
Here is a code example that will do it using VB Script.
http://www.vbforums.com/showthread.php?t=234891
ocw
Jan 5th, 2006, 03:31 AM
Here is a code example that will do it using VB Script.
http://www.vbforums.com/showthread.php?t=234891
hihi.. i have tried the code, and it works when the button is clicked. how can i embed it to my application or P&D packager so that after the insatllation process has completed the installation, short cut will automatically created at the desktop? how can i create a vb script for that?
???
ocw
dglienna
Jan 6th, 2006, 11:33 PM
Try Inno Setup and Inno Script, which writes the files that Inno Setup uses. It creates an install .exe, and lets you include shortcuts automatically. It also launches the app from the install file. You can get info from www.*********** about both programs.
RobDog888
Jan 6th, 2006, 11:34 PM
Another downside of ********** is that its not free.
dglienna
Jan 7th, 2006, 11:58 AM
The new version is 5 times faster, really cool. The cost is only $15. Maybe he should have kept the old version free, though. That seems to be the only complaint that I've been hearing.
RobDog888
Jan 7th, 2006, 12:02 PM
The other problem with it is that you need two programs just to create your package.
ocw
Jan 9th, 2006, 12:35 AM
hihi..
Other than purchasing the external installer's packager which is not free, how shoud i write an vb script that allows me to create the short cut after the installation process?
???
ocw
RobDog888
Jan 9th, 2006, 02:15 AM
The link I posted in #6 is VB Script. Just execute it after the installation.
dglienna
Jan 9th, 2006, 02:51 AM
Can you call a .vbs sub from the installer, or do you have to modify the installer?
I could see putting the code in startup, but that'd run every time, and create dups. Inno puts it in the .exe that installs and runs (optionally) the app.
Inno also allows you to add a desktop shortcut, yet leave the P&D app alone. I've also gone back to that on occasion.
RobDog888
Jan 9th, 2006, 02:58 AM
No, easiest solution is to place the vbs code to be called from the startup/form_load of your app. Check if its the first run or if the shortcut exists or not. Then execute the script depending on the finding results. No switching installers or modifying the current installer.
dglienna
Jan 9th, 2006, 03:05 AM
Well, I could see that adding 40 shortcuts if I ran it 40 times. That's what I wanted to clarify.
RobDog888
Jan 9th, 2006, 03:09 AM
...Check if its the first run or if the shortcut exists or not. ...I dont see how you could get multiple shortcuts if you do like I posted.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.