View Full Version : install or run from cd option
badger7
08-16-2004, 03:02 PM
new to set up factory....wondering if when using set up factory for program installation you can give the person the option of installing program to hard disk or running the program from cd....
thanks, dan
Dan,
This is possible using Setup Factory using a Radio Button screen. You will have to place your application on the CD-ROM tab and reference it from there. I can go into more detail about this if you require.
The best solution is to create an AutoPlay Media Studio 5.0: http://www.indigorose.com/ams/index.php project that will give the user this option. This is the best tool to use for front end CD-ROM.
If you would like to do this in Setup factory post back to this thread and we will go from there.
Adam Kapilik
badger7
08-16-2004, 06:49 PM
Thanks Adam,
i am a registered user of auto play media studio pro 5.0.
i have a presentation made and to be honest, i didn't know that i could do that with auto play....
i would like to give the end user the option of running off the cd or an installation on the hard drive.....can you steer me in the right direction.....
thanks, dan
AXXESS
08-16-2004, 10:04 PM
Hi Dan,
We do this type of application all the time with AutoPlay 5.0 and SUF. The CD will autorun when inserted into the drive and can be run from there, or the user has the option to install the application to their hard drive.
Here are the steps we use:
1) Create your application in AutoPlay. On the main menu screen we have an icon to "Install application to your PC's Hard Drive". This icon points to the setup file created by SUF ("setup.exe") which is placed on the root of the CD. We have the AutoPlay application set up to check if a SUF-written registry value is present to determine if the application has already been installed. If the registry value is there, the "Install application..." icon is hidden.
The actions for writing to and checking the registry we use are as follows:
(In AutoPlay, for checking the registry value under Actions>On Preload for the page the "Install Application...." link is on) -
resultkeyp = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\\widgets101");
if (resultkeyp == true) then
Image.SetVisible("InstallIcon", false);
end
The "widgets101" can be the name of your app or any name you choose. The Image.SetVisible command is used to hide the install option if the user already has installed the program.
(In SUF, for writing the value under Actions>After Installing) -
Modify Registry (Set Value: HKEY_LOCAL_MACHINE\Software\widgets101 -1 = Value Data)
2) Build your AutoPlay application to a hard drive folder.
3) Open SUF and add the contents of this folder to your SUF project. Create the appropriate install screens, etc. in SUF.
4) Build your SUF project and save the setup file to the same build folder as your AutoPlay files.
5) Burn the contents of the folder to disc with your favorite CD burning app.
Another bulletproof installation created with Indigo Rose products! We have built a dozen apps this way with 10s of 1000s of discs out there, and no problems whatsoever...
Good luck with your application!! :yes
Corey
08-16-2004, 10:06 PM
Nice!!! :yes
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
Nice response. :yes
Adam Kapilik
badger7
08-18-2004, 03:44 PM
thanks for all the support.....makes a difference knowing that you will get an answer to your questions......dan :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.