Jump to content











Photo
- - - - -

Go2PDF.script


  • Please log in to reply
19 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 29 November 2009 - 02:46 PM

To do some tests about the necessarity of RegAddBoot, I downloaded the actual Go2PDF.Script and inserted into nativeEx_barebone.
I used common_API version 19

Two questions:
On my x86 system with x86 source cd (xp_SP3_DE), the API command 'Arch' exited the script with the message:

%ProgramTitle% requires WOW64 for PE x64/IA64

The x64 suggestion is truelly wrong!
BTW: The API required %ProgramTitle% is not defined in the script. But defining it does not remove the x64 hint.

Are the lines

RegAddBoot,HKLM,0x1,SYSTEM\ControlControlSet\Control\Printers,DefaultSpoolDirectory,#$ptemp#$p\PrintSpool
RegAddBoot,HKLM,0x1,SYSTEM\ControlControlSet\Control\Print\Printers,DefaultSpoolDirectory,#$ptemp#$p\PrintSpool

correct?

BTW: On my local registry a corresponding entry to the first line does not exist.

Peter

#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 29 November 2009 - 04:23 PM

BTW: On my local registry a corresponding entry to the first line does not exist.

Rest assured, you are not the only one that miss that key. :thumbup:

Under HKEY_LOCAL_MACHINE\SYSTEM there is:
  • ControlSet001
  • ControlSet002
  • ...
  • ControlSet00n

and
  • CurrentControlSet
which is a redirection (only in a "live" Registry) to whatever ControlSet00n is set in HKEY_LOCAL_MACHINE\SYSTEM\Select

jaclaz

#3 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 November 2009 - 04:37 PM

jaclaz are you sure about the ControlSet00n?
The way i unstood it, there are always only 3 controlsets in rotation.

:thumbup:

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 29 November 2009 - 04:48 PM

Rest assured, you are not the only one that miss that key. :thumbup:

Under HKEY_LOCAL_MACHINE\SYSTEM there is:

  • ControlSet001
  • ControlSet002
  • ...
  • ControlSet00n

and
  • CurrentControlSet
which is a redirection (only in a "live" Registry) to whatever ControlSet00n is set in HKEY_LOCAL_MACHINE\SYSTEM\Select

jaclaz

You misunderstood.
I do not have the key

RegAddBoot,HKLM,0x1,SYSTEM\CurrentControlSet\Control\Printers,DefaultSpoolDirectory,#$ptemp#$p\PrintSpool

The ControlSet00n are nor relevant in that issue.

Peter

#5 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 29 November 2009 - 05:09 PM

The way i unstood it, there are always only 3 controlsets in rotation.

Addional controlsets maybe archived, this are old, not used anymore.
Exampe ControlSet221: http://www.extermina...keys/msqpdxserv

I do not have the key

Yes, I don't have a Control\Printers\DefaultSpoolDirectory too.
There is a ControlSet001\Control\Print\Printers\DefaultSpoolDirectory.

#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 29 November 2009 - 05:11 PM

There is a ControlSet001\Control\Print\Printers\DefaultSpoolDirectory.

:thumbup:
Peter

#7 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 29 November 2009 - 05:27 PM

jaclaz are you sure about the ControlSet00n?
The way i unstood it, there are always only 3 controlsets in rotation.

:thumbup:


You understood it wrong. :thumbup:


I never experienced personally anything further than Controlset005, but there are people who do :rofl::
http://www.forensicf...m...opic&t=4952


@psc

And the bad news is that I still do not understand, you posted about "ControlControlSet" and you also made it RED is it a variable of some kind?

jaclaz

#8 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 29 November 2009 - 05:30 PM

And the bad news is that I still do not understand, you posted about "ControlControlSet" and you also made it RED is it a variable of some

Correctly it should be
CurrentControlSet :thumbup:

Peter

#9 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 29 November 2009 - 05:41 PM

Addional controlsets maybe archived, this are old, not used anymore.
Exampe ControlSet221:

:thumbup: If i ever happen to see 200+ controlsets in my registry, i do not try to fix, i buy a new computer! :rofl:

:thumbup:

#10 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 29 November 2009 - 05:51 PM

@psc
So, you apparently failed to explain yourself :thumbup:, a bit different from a misunderstanding on my side. :rofl:

@Medevil
Yep, I would also smash the old one, burn it and scatter it's ashes, you never know it could be contagious even when swithed off for good. :rofl:

:thumbup:

jaclaz

#11 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 29 November 2009 - 07:38 PM

@psc
So, you apparently failed to explain yourself ;) , a bit different from a misunderstanding on my side. :thumbup:

I beg your pardon, Sir, that I always continue to write technical descriptions understandable for maintaining persons (In this case the post was mainly adressed to Lancelot / Pedrole15).
Doing that I often forget the readability for the end users. :)


#12 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 29 November 2009 - 11:33 PM

Hi Peter,

some short answers:
* use latest capi :thumbup:
* Arch warning (suggestion) is right, to get arch lines work properly you need to update nativeex_barabone, add this line (probably to fundemantals script)
Set,%TargetWOW64%,%SourceArch%,PERMANENT
* go2pdf:
well I just try to install go2pdf to my hostos and found go2pdf is not compatible for x64 builds. So I just updated the script with minor modification about checking source.

I do not know go2pdf script well, I leave further changes and comments to galapo or others.

#13 Galapo

Galapo

    Platinum Member

  • .script developer
  • 3841 posts
  •  
    Australia

Posted 30 November 2009 - 12:03 AM

Yes, I don't have a Control\Printers\DefaultSpoolDirectory too.
There is a ControlSet001\Control\Print\Printers\DefaultSpoolDirectory.

Maybe there's a bug in the script? I only have that key as well.

* Arch warning (suggestion) is right, to get arch lines work properly you need to update nativeex_barabone, add this line (probably to fundemantals script)

Set,%TargetWOW64%,%SourceArch%,PERMANENT

Or maybe nativeEx could now include the OnProjectRun script: http://livexp.boot-l...ojectRun.script.

Regards,
Galapo.

#14 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 30 November 2009 - 01:37 PM

Set,%TargetWOW64%,%SourceArch%,PERMANENT

OK, in nativeEx_barebone this is only necessary for including LiveXP apps having the Arch command.
For tests I'll include and after that I'll remove again.

But currently I do not understand the whole construction:
  • For me %TargetWOW64% means a definition whether the target OS has a WOW64.
    Therefore I would assume a True / False or Yes / No, but there is a x86 / x64 :thumbup:
  • Why there is the redundancy that two variables have the same value?
    Or is it possible that %TargetWOW64% is changed inside the build, while %SourceArch% is constant?

* use latest capi :thumbup:

Look into the first lines of post #1 :rofl:

Peter

#15 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 30 November 2009 - 09:04 PM

Hi Peter,

[*]For me %TargetWOW64% means a definition whether the target OS has a WOW64.
Therefore I would assume a True / False or Yes / No, but there is a x86 / x64 :clap:

I opened a topic to ask your opinion long time ago. But on the topic you seem not to understand and responded not well. It seems now you understand so maybe better if you check the topic here to see where a miscomunication appears.
So I followed Max_Real QNX method (Set,%TargetWOW64%,%SourceArch%,PERMANENT) only Max was using %X864% instead of %TargetWOW64% . Since %X864% name was not clear I asked Galapo for a better name and we have %TargetWOW64%.

If x86 projects wants to have multiarchitecture scripts work in their projects, all they need to do is adding "Set,%TargetWOW64%,%SourceArch%,PERMANENT" to an appropriate script.

No need to change the method, most alive projects (vistapecapi, multi7os, livexp, vistaleopard) already uses it. Method works well and also forces admins to use common variable names instead of reinventing them.

#16 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 30 November 2009 - 09:08 PM

[*]Why there is the redundancy that two variables have the same value?
Or is it possible that %TargetWOW64% is changed inside the build, while %SourceArch% is constant?

no redundancy, %TargetWOW64% is planned to be changed by a future possible wow64 script/option.
Well, recent posts indicates that there will be such an option soon which would change this value to x86 (if not x86 already :clap:) if selected.

#17 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 30 November 2009 - 10:08 PM

If the %TargetWOW64% will be changed during the build, there is of course no redundancy. :clap:

And do I understand correct:
If the target's %SourceArch% is x64, and there will be a WOW for x86, then the target supplies processing of x86.
Therefore %TargetWOW64% = x86?

But %TargetWOW64% is primarily set to %SourceArch%, in this case to x64.
What is triggered, when the value changes from x64 to x86?

Or does that simply mean: Add WOW64 support to the target PE?
And if the WOW64.script is not selected, there is something wrong with the ??? script. It cannot run in the PE.

That can much more easier be checked by Verify.
(Verify checks all scripts, the changed %TargetWOW64% is unknown for scripts 'before' the WOW64Support script).

Peter

#18 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 30 November 2009 - 10:12 PM

And do I understand correct:
If the target's %SourceArch% is x64, and there will be a WOW for x86, then the target supplies processing of x86.
Therefore %TargetWOW64% = x86?

no,
there do not have to be WOW64

you can make a PEx64 build without having wow64 (%TargetWOW64% = x64)
you can make a PEx64 build with having wow64 (%TargetWOW64% = x86)

But %TargetWOW64% is primarily set to %SourceArch%, in this case to x64.
What is triggered, when the value changes from x64 to x86?

As written many times before, it is triggered by an enabled wow64 script/option.

#19 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 30 November 2009 - 10:18 PM

Sorry, I edited during you replied.

I think I do not understand the underlying ideas.

So treate these last posts just as my brainstorming.

Peter :clap:

#20 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 30 November 2009 - 11:13 PM

That can much more easier be checked by Verify.
(Verify checks all scripts, the changed %TargetWOW64% is unknown for scripts 'before' the WOW64Support script).


a small reply to the edit:
For some probably "vital" scripts, verify would be used. Besides it is obviously difficult (and boring) to re-set all apps scripts to make a build with different architecture. As a result (after a brainstorm) current mechanism used. :clap:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users