|
-
Jan 5th, 2006, 03:03 AM
#1
Thread Starter
Hyperactive Member
Creating Short cut after installing the installer file
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
-
Jan 5th, 2006, 03:05 AM
#2
Re: Creating Short cut after installing the installer file
Which packager program are you using?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 5th, 2006, 03:10 AM
#3
Thread Starter
Hyperactive Member
Re: Creating Short cut after installing the installer file
 Originally Posted by RobDog888
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
-
Jan 5th, 2006, 03:14 AM
#4
Re: Creating Short cut after installing the installer file
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 5th, 2006, 03:17 AM
#5
Thread Starter
Hyperactive Member
Re: Creating Short cut after installing the installer file
 Originally Posted by RobDog888
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
-
Jan 5th, 2006, 03:18 AM
#6
Re: Creating Short cut after installing the installer file
Here is a code example that will do it using VB Script.
http://www.vbforums.com/showthread.php?t=234891
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 5th, 2006, 03:31 AM
#7
Thread Starter
Hyperactive Member
Re: Creating Short cut after installing the installer file
 Originally Posted by RobDog888
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
-
Jan 6th, 2006, 11:33 PM
#8
Re: Creating Short cut after installing the installer file
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.
-
Jan 6th, 2006, 11:34 PM
#9
Re: Creating Short cut after installing the installer file
Another downside of ********** is that its not free.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 7th, 2006, 11:58 AM
#10
Re: Creating Short cut after installing the installer file
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.
-
Jan 7th, 2006, 12:02 PM
#11
Re: Creating Short cut after installing the installer file
The other problem with it is that you need two programs just to create your package.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 9th, 2006, 12:35 AM
#12
Thread Starter
Hyperactive Member
Re: Creating Short cut after installing the installer file
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
-
Jan 9th, 2006, 02:15 AM
#13
Re: Creating Short cut after installing the installer file
The link I posted in #6 is VB Script. Just execute it after the installation.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 9th, 2006, 02:51 AM
#14
Re: Creating Short cut after installing the installer file
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.
-
Jan 9th, 2006, 02:58 AM
#15
Re: Creating Short cut after installing the installer file
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 9th, 2006, 03:05 AM
#16
Re: Creating Short cut after installing the installer file
Well, I could see that adding 40 shortcuts if I ran it 40 times. That's what I wanted to clarify.
-
Jan 9th, 2006, 03:09 AM
#17
Re: Creating Short cut after installing the installer file
 Originally Posted by RobDog888
...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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|