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
Printable View
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
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..Quote:
Originally Posted by RobDog888
???
ocw
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?Quote:
Originally Posted by RobDog888
???
ocw
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?Quote:
Originally Posted by RobDog888
???
ocw
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.
Another downside of ********** is that its not free.
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.
The other problem with it is that you need two programs just to create your package.
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
The link I posted in #6 is VB Script. Just execute it after the installation.
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.
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.
Well, I could see that adding 40 shortcuts if I ran it 40 times. That's what I wanted to clarify.
I dont see how you could get multiple shortcuts if you do like I posted.Quote:
Originally Posted by RobDog888