Visual Basics Code

  • bluedragon
  • Proficient
  • Proficient
  • User avatar
  • Joined: Dec 31, 2003
  • Posts: 451
  • Loc: Hells Gate
  • Status: Offline

Post December 31st, 2003, 8:35 am

I made a program that installed this other program I made but whats the code to automatically restart after the installation is complete?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 31st, 2003, 8:35 am

  • Lieven
  • Beginner
  • Beginner
  • User avatar
  • Joined: Jan 04, 2004
  • Posts: 57
  • Loc: Belgium
  • Status: Offline

Post January 4th, 2004, 4:39 pm

You have to call the Windows API Function ExitWindowsEx...

Good example code can be found at
http://www.pbdr.com/vbtips/api/RestrtWn.htm


btw: Google is your friend
  • rjstephens
  • Professor
  • Professor
  • User avatar
  • Joined: Jul 28, 2003
  • Posts: 774
  • Loc: Brisbane, Australia
  • Status: Offline

Post January 5th, 2004, 4:31 am

i would recommend avoiding creating your own installer, in any programming language, but especially VB. try inno setup ( http;//jrsoftware.org ) or nullsoft install system ( http://nsis.sourceforge.net )

Make sure you get all the runtime DLLs. DO NOT pull them from your system folders, though. This is a VERY BAD IDEA.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 151 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.