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!
Printable View
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!
Try placing double quotes around it.
run="Membership Setup.exe"
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"?
I think its supossed to be Open. Maybe my memory isnt too good :D
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 :)
Try instead of open ...
shellexecute="Membership Setup.exe"
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.
If that is the case, try recompiling it as Membership_Setup.exe and see if it likes that.
I have just renamed it Membership.exe :D
Even better.....did it like that?
The documentation doesnt state anything about spaces :(
Quote:
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.
Quote:
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.
Quote:
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.
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 :)
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.
Thanks Rob, nice to know why it didn't work :)