|
#1
|
|||
|
|||
|
Installation Path from Registry
Hello,
I'm trying to let Setup Factory 8.0 automaticly select the good installation path by reading Registry.Local Machine/Software/test. In that folder is a registry key named "programpath" and the value contains the good installation path. I tried to edit the Welcome to installation screen @ On Next... But it fails. So any help or answers would be pleased. , noobxl |
|
#2
|
||||
|
||||
|
Quote:
But I'm in a good mood.. ;-) Code:
local ProgPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\test", "programpath"); Code:
SessionVar.Set("%ProgPath%", ProgPath);
Code:
SessionVar.Set("%ProgPath%", Registry.GetValue(HKEY_LOCAL_MACHINE, "Software/test", "programpath"));[/
|
|
#3
|
|||
|
|||
|
Hmm... I get an empty path then.
I have this in On Next code of Welcome To Setup. Code:
SessionVar.Set("%ProgPath%", Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE/test", "testpath"));
Screen.Next();
Default folder: %ProgPath% Store result in session: %ProgPath% Maybe I have to put %ProgPath% first in the session variables. But how exactly? ,noobxl |
|
#4
|
||||
|
||||
|
Try \\ instead of /
Does this value exist? are you checking Application.GetLastError()? |
|
#5
|
|||
|
|||
|
Yes that did the job.
Thank you very much for your good help. ,noobxl |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installation Path | AHRIMANSEFID | Setup Factory 8.0 Discussion | 4 | 08-27-2008 01:57 AM |
| sqlite.open from installation path | Canter | AutoPlay Media Studio 7.5 Discussion | 1 | 01-28-2008 07:32 PM |
| Example to read the installation path from the registry | cinek | Setup Factory 7.0 Discussion | 3 | 12-28-2006 02:42 PM |
| how do you search for a program's installation path in the registry, check if it exists, run it...if | navajax | AutoPlay Media Studio 4.0 | 7 | 06-17-2003 04:55 AM |
| HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-30-2002 02:55 PM |
All times are GMT -6. The time now is 12:48 AM.









Linear Mode

