|
-
Dec 4th, 2007, 09:04 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] autorun.ini
Is your set up file name allowed to have spaces in the ini file?
If I have MembershipSetup.exe it autoruns.
If I have Membership Setup.exe it doesn't!
Seems like it shouldn't, but wanted to make sure that it is this and not something else!
-
Dec 4th, 2007, 09:06 AM
#2
Re: autorun.ini
Try placing double quotes around it.
run="Membership Setup.exe"
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 
-
Dec 4th, 2007, 09:20 AM
#3
Thread Starter
Frenzied Member
Re: autorun.ini
Thanks RobDog888
Does this look right to you;
[autorun]
run="Membership Setup.exe"
icon=MO.ico
label=Membership Organiser
What is the difference between "run" and "open"?
-
Dec 4th, 2007, 09:26 AM
#4
Re: autorun.ini
I think its supossed to be Open. Maybe my memory isnt too good
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 
-
Dec 4th, 2007, 09:33 AM
#5
Thread Starter
Frenzied Member
Re: autorun.ini
Hmm, seems like this is the only way to have it run;
[autorun]
open=MembershipSetup.exe
icon=MO.ico
label=Membership Organiser
Not a problem, just wondered really
-
Dec 4th, 2007, 09:37 AM
#6
Re: autorun.ini
Try instead of open ...
shellexecute="Membership Setup.exe"
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 
-
Dec 4th, 2007, 09:45 AM
#7
Thread Starter
Frenzied Member
Re: autorun.ini
Seems like it doesn't like spaces!
I tried the Shellexecute and I get the error message;
Windows cannot find 'Membership'. make sure you typed the name correctly and then try again.
-
Dec 4th, 2007, 09:49 AM
#8
Re: autorun.ini
If that is the case, try recompiling it as Membership_Setup.exe and see if it likes that.
-
Dec 4th, 2007, 09:50 AM
#9
Thread Starter
Frenzied Member
Re: autorun.ini
I have just renamed it Membership.exe
-
Dec 4th, 2007, 09:52 AM
#10
Re: autorun.ini
Even better.....did it like that?
-
Dec 4th, 2007, 10:54 AM
#11
Re: autorun.ini
The documentation doesnt state anything about spaces 
filename
A string that contains the file's name. If it is an executable file, it is launched. If it is a data file, it must be a member of a file class. ShellExecuteEx launches the default command associated with the file class.
filepath
A string that contains the fully qualified path of the directory that contains the binary file containing the string. If no path is specified, the file must be in the drive's root directory.
open
The open entry specifies the path and file name of the application that AutoRun launches when a user inserts a disc in the drive.
Copy Code
open=[exepath\]exefile [param1 [param2] ...] Parameters
exefile
Fully qualified path of an executable file that runs when the CD is inserted. If only a file name is specified, it must be in drive's root directory. To locate the file in a subdirectory, you must specify a path. You can also include one or more command-line parameters to pass to the startup application.
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 
-
Dec 4th, 2007, 11:58 AM
#12
Thread Starter
Frenzied Member
Re: autorun.ini
Thanks for the info Rob.
Don't know why I couldn't get it to work through.
It's not important, I just wondered why it wouldn't work.
Anyway, by just using the name membership.exe it works fine, with or without the quotation marks
-
Dec 4th, 2007, 08:40 PM
#13
Re: [RESOLVED] autorun.ini
Think I just realized why...
open=[exepath\]exefile [param1 [param2] ...] Parameters
The space is the delimeter for the parameters that are optionally passed too. Oh well. Guess spaces in the file/path wont work after all.
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 
-
Dec 5th, 2007, 10:00 AM
#14
Thread Starter
Frenzied Member
Re: [RESOLVED] autorun.ini
Thanks Rob, nice to know why it didn't work
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
|