Indigo Rose Software
  #1  
Old 09-09-2008
noobxl noobxl is offline
Forum Member
 
Join Date: Sep 2008
Posts: 5
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
Reply With Quote
  #2  
Old 09-09-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by noobxl View Post
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
Usually helps if you post the code you TRIED, most won't just write you code because you asked...
But I'm in a good mood.. ;-)


Code:
local ProgPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\test", "programpath");
And then if you need it in a session variable:

Code:
SessionVar.Set("%ProgPath%", ProgPath);
or combined into a hard to read:
Code:
SessionVar.Set("%ProgPath%", Registry.GetValue(HKEY_LOCAL_MACHINE, "Software/test", "programpath"));[/
__________________
Reply With Quote
  #3  
Old 09-09-2008
noobxl noobxl is offline
Forum Member
 
Join Date: Sep 2008
Posts: 5
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();
And in the Select installation path I got:

Default folder: %ProgPath%



Store result in session: %ProgPath%

Maybe I have to put %ProgPath% first in the session variables. But how exactly?

,noobxl
Reply With Quote
  #4  
Old 09-09-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Try \\ instead of /

Does this value exist?
are you checking Application.GetLastError()?
__________________
Reply With Quote
  #5  
Old 09-10-2008
noobxl noobxl is offline
Forum Member
 
Join Date: Sep 2008
Posts: 5
Yes that did the job.

Thank you very much for your good help.

,noobxl
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software