Hello dear guest!

Why not join our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

2 Pages V   1 2 >  
Reply to this topic
 project variables, defining for cross-project portability of scripts
post Oct 27 2008, 10:12 PM
Post #1
Galapo
Platinum Member   ******
Group: .script developer

  Joined: 16-July 06
Posts: 3,136
Thank(s): 256


Australia


Due to the discussion here, it would seem that some move to implementing the defining of useful or common variables in other projects be made so as to allow for the cross-project portability of scripts. This would supplement the api in a helpful way, as more complex scripts requires a few more things.

1. Variable in VistaPE:
%TempFolder%

My suggestion would be that nativeEx-based projects define this variable.

2. nativeEx-based project variables:
%target_win%
%target_sys%
%source_win%
%source_sys%
%GlobalTemp%
%ProjectTemp%
%GlobalTemplates%

My suggestion would be that VistaPE define these variables.

Regards,
Galapo.


--------------------
galapo.boot-land.net
------
Recommended steps to build LiveXP:
1) Download suitable WinBuilder.exe from here and run it;
2) Update through the Download Center by clicking the 'Download' button; and
3) Then build LiveXP by pressing the 'Play' button.


1 user(s) said "Thank you!" to Galapo for this fantastic post:
TheHive
+Quote Post
post Oct 28 2008, 08:09 AM
Post #2
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,443
Thank(s): 441


Germany


QUOTE (Galapo @ Oct 27 2008, 11:12 PM) *
Due to the discussion here, it would seem that some move to implementing the defining of useful or common variables in other projects be made so as to allow for the cross-project portability of scripts. This would supplement the api in a helpful way, as more complex scripts requires a few more things.

1. Variable in VistaPE:
%TempFolder%

A good idea thumbup.gif

But what is %TempFolder% for a nativeEx based project?
Is it different from WB built in %TempDir% ?

Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Oct 28 2008, 08:20 AM
Post #3
Galapo
Platinum Member   ******
Group: .script developer

  Joined: 16-July 06
Posts: 3,136
Thank(s): 256


Australia


QUOTE (psc @ Oct 28 2008, 07:09 PM) *
But what is %TempFolder% for a nativeEx based project?
Is it different from WB built in %TempDir% ?

In the current LiveXP script.project I have defined it as '%TempFolder%=%ProjectTemp%'. Of course, %TempFolder% is only useful in a nativeEx-based project if bringing a VistaPE script in since we already use %ProjectTemp%. The opposite applies to VistaPE: define %ProjectTemp% so more nativeEx-based scripts may be used.

Regards,
Galapo.


--------------------
galapo.boot-land.net
------
Recommended steps to build LiveXP:
1) Download suitable WinBuilder.exe from here and run it;
2) Update through the Download Center by clicking the 'Download' button; and
3) Then build LiveXP by pressing the 'Play' button.
+Quote Post
post Oct 28 2008, 10:56 AM
Post #4
Nuno Brito
Platinum Member   ******
Group: .script developer

  Joined: 13-July 06 From: Coimbra

Posts: 7,685
Thank(s): 311


Portugal


QUOTE
%GlobalTemp%
%ProjectTemp%
%GlobalTemplates%


Should these variables really extend to other projects in the future?

Only %TempFolder% in the context of NativeEx should be equivalent to %projectTemp% as Galapo mentioned to make app scripts work good, shouldn't it? huh.gif



--------------------
+Quote Post
post Oct 29 2008, 03:47 AM
Post #5
Galapo
Platinum Member   ******
Group: .script developer

  Joined: 16-July 06
Posts: 3,136
Thank(s): 256


Australia


They should extend if other projects are wanting to use some script which use the variables. Only more complex script require it, eg OfflineSysPrep etc.

My initial suggestion (without knowing much about VistaPE) would be:

%GlobalTemp%=%TempFolder%
%ProjectTemp%=%TempFolder%

%GlobalTemplates% would need more consideration.

Regards,
Galapo.


--------------------
galapo.boot-land.net
------
Recommended steps to build LiveXP:
1) Download suitable WinBuilder.exe from here and run it;
2) Update through the Download Center by clicking the 'Download' button; and
3) Then build LiveXP by pressing the 'Play' button.
+Quote Post
post Oct 29 2008, 12:17 PM
Post #6
paraglider
Silver Member   ****
Group: .script developer

  Joined: 12-August 06 From: NC,USA

Posts: 810
Thank(s): 90


United States


Whats the difference between %target_win% and %target_sys%?
+Quote Post
post Oct 29 2008, 12:27 PM
Post #7
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,443
Thank(s): 441


Germany


QUOTE (paraglider @ Oct 29 2008, 01:17 PM) *
Whats the difference between %target_win% and %target_sys%?

%target_win% = i386 or minint
%target_sys% = i386\system32 or minint\system32

Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Nov 4 2008, 12:20 AM
Post #8
Galapo
Platinum Member   ******
Group: .script developer

  Joined: 16-July 06
Posts: 3,136
Thank(s): 256


Australia


So is the VistaPE project going to define some extra variables to achieve greater cross-project portability of scripts or not?

Thanks,
Galapo.


--------------------
galapo.boot-land.net
------
Recommended steps to build LiveXP:
1) Download suitable WinBuilder.exe from here and run it;
2) Update through the Download Center by clicking the 'Download' button; and
3) Then build LiveXP by pressing the 'Play' button.
+Quote Post
post Nov 5 2008, 05:23 AM
Post #9
Galapo
Platinum Member   ******
Group: .script developer

  Joined: 16-July 06
Posts: 3,136
Thank(s): 256


Australia


Maybe I overlooked them before, but the following variables are defined in VistaPE:

%source_win%=%InstallSRC%\Windows
%target_win%=%TargetDir%\windows
%source_sys%=%InstallSRC%\Windows\System32
%target_sys%=%TargetDir%\Windows\System32

So this still leaves three important variables to be defined, viz.:

%GlobalTemp%
%ProjectTemp%
%GlobalTemplates%

In my opinion, nativeEx still needs to specify %TempFolder%=%ProjectTemp%.

Regards,
Galapo.


--------------------
galapo.boot-land.net
------
Recommended steps to build LiveXP:
1) Download suitable WinBuilder.exe from here and run it;
2) Update through the Download Center by clicking the 'Download' button; and
3) Then build LiveXP by pressing the 'Play' button.
+Quote Post
post Nov 5 2008, 02:45 PM
Post #10
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,443
Thank(s): 441


Germany


QUOTE (Galapo @ Nov 5 2008, 06:23 AM) *
In my opinion, nativeEx still needs to specify %TempFolder%=%ProjectTemp%.


In nativeEx_barebone_075 it is done (not yet upload).

The stable nativeEx_barebone relies on WB 074 and is frozen. After releasing 076 that will be updated.

Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

1 user(s) said "Thank you!" to psc for this fantastic post:
Galapo
+Quote Post

2 Pages V   1 2 >
Reply to this topic
1 User(s) are reading this topic ()





Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts Pinned: Project authors - read this!
Important information about project authoring
11 psc 1,020 1st October 2009 - 11:42 AM
Last post by: jaclaz
No New Posts Project doesn't work right any longer
(after applying ComboBox v5)
12 dorux 1,623 9th August 2009 - 06:02 PM
Last post by: p99p5
No new ProjectInfo.ini
...incomplete
16 fxscrpt 2,350 13th May 2009 - 03:35 PM
Last post by: Lancelot
No New Posts Project management rant
9 MedEvil 1,409 20th April 2009 - 05:16 PM
Last post by: MedEvil
No New Posts Project awesome!
You're making a real good job here...
2 Capitain_Jack 1,057 9th April 2009 - 05:49 PM
Last post by: billonious


Display Mode: Standard · Switch to: Linear+ · Switch to: Outline

Track this topic · Email this topic · Print this topic · Subscribe to this forum