multi file installer
multi file installer
multi file installer
multi file installer
multi file installer
multi file installer multi file installer multi file installer multi file installer multi file installer multi file installer multi file installer multi file installer
multi file installer multi file installer
multi file installer
Go Back  Xtreme Visual Basic Talk > > > multi file installer


Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2009, 09:08 PM
Brad7928 Brad7928 is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Question multi file installer


Im trying to make a program the open's a file, either .avi or .exe, when a button is clicked...

This will be put onto a cd. The cd drive letter changes with each pc. It'd be good if you could use something like in html like "./drivers/filename.exe".

I'm trying to create a mulitple .exe installer that gives the user the chioce of which driver to install, runs the drivers setup program (.exe) and then finishes, nothing fancy.

Can you see a way to do this?

I did set up a batch file that copied the "drivers" folder to the C: (which is the same on all windows PC's), problem was that UAC didn't like this, where XP worked beautiful. So when the CD was inserted, it would run the batch file via the autorun, and copy the files, call the setup.exe (visual basic program) then when the program was terminated it would delete the drivers folder and finish.

Not the best way to do it i know...

Any idea's?
Reply With Quote
  #2  
Old 03-25-2009, 08:10 PM
OMID SOFT OMID SOFT is offline
Contributor
 
Join Date: May 2004
Location: Richmond Hill
Posts: 538
Default

System.Diagnostics.Process.Start(My.Application.Info.DirectoryPath + "\blah.exe")

And also set your UAC settings to:

<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
__________________
Don't ask what your country can do for you, ask what you can do for your country...
Reply With Quote
  #3  
Old 03-25-2009, 09:00 PM
Brad7928 Brad7928 is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Default

This will work with Visual Basic 2008 Express Edition?

So would i use this for when the button is clicked?

ShellExecute ("System.Diagnostics.Process.Start(My.Application.Info.DirectoryPat h + "\Drivers\filename.exe")")
Reply With Quote
  #4  
Old 03-25-2009, 09:31 PM
OMID SOFT OMID SOFT is offline
Contributor
 
Join Date: May 2004
Location: Richmond Hill
Posts: 538
Default

Quote:
Originally Posted by Brad7928 View Post
This will work with Visual Basic 2008 Express Edition?
Yes, the edition of VB does not affect the language syntax!

Quote:
Originally Posted by Brad7928 View Post
So would i use this for when the button is clicked?

ShellExecute ("System.Diagnostics.Process.Start(My.Application.Info.DirectoryPat h + "\Drivers\filename.exe")")
System.Diagnostics.Process.Start(My.Application.Info.DirectoryPath + "\Drivers\filename.exe")
__________________
Don't ask what your country can do for you, ask what you can do for your country...
Reply With Quote
  #5  
Old 03-25-2009, 10:21 PM
Brad7928 Brad7928 is offline
Newcomer
 
Join Date: Mar 2009
Posts: 3
Default

Thanks, in the past there have been variations like, in vb 2006 you would use Shell, and in vb2008 you use ShellExecute.

I will give it a go tonight and post again asap.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
multi file installer
multi file installer
multi file installer multi file installer
multi file installer
multi file installer
multi file installer multi file installer multi file installer multi file installer multi file installer multi file installer multi file installer
multi file installer
multi file installer
 
multi file installer
multi file installer
 
-->