hi all,
i would like to make a project that can be RUN (not installed) of a CD/DVD or off any folder and only run from that location. The reason for this is that i would like to be able to use the Shell() command to .exe's inside the folder that the project is in. eg. if i have a few exe's on a cd as well as my project i could just go 'Shell("abc.exe")' without a path because it should assume that it means abc.exe in the same path as the running project.
I have been told that to do this in Visual Basic .NET 2005 that i have to make a setup project and import my first project that i have made (with the shell commands), is this true?? i have tried to make a setup project but it does not install or run or do anything with my first project?!
also i had some success with the shell commands by copying the contents of /myproject/bin/Release , but because it isnt published you cannot detect if a computer has .net framework or not and i really need it to be able to do this? in other words if i use /bin/release i can use the shell commands properly and put the folder anywhere i want just like visual basic 6.0, and if i use the published project i can detect for .net framework but not use shell commands as the running directory (application.startuppath) is a temporary one.
can anybody make a suggestion so i can get both the shell commands and .net framework detection (and installation if necessary) to work?
thanks,
Stuart
i would like to make a project that can be RUN (not installed) of a CD/DVD or off any folder and only run from that location. The reason for this is that i would like to be able to use the Shell() command to .exe's inside the folder that the project is in. eg. if i have a few exe's on a cd as well as my project i could just go 'Shell("abc.exe")' without a path because it should assume that it means abc.exe in the same path as the running project.
I have been told that to do this in Visual Basic .NET 2005 that i have to make a setup project and import my first project that i have made (with the shell commands), is this true?? i have tried to make a setup project but it does not install or run or do anything with my first project?!
also i had some success with the shell commands by copying the contents of /myproject/bin/Release , but because it isnt published you cannot detect if a computer has .net framework or not and i really need it to be able to do this? in other words if i use /bin/release i can use the shell commands properly and put the folder anywhere i want just like visual basic 6.0, and if i use the published project i can detect for .net framework but not use shell commands as the running directory (application.startuppath) is a temporary one.
can anybody make a suggestion so i can get both the shell commands and .net framework detection (and installation if necessary) to work?
thanks,
Stuart