Jump to content











Photo
* * * * * 1 votes

[Script] ImageIndex.script


  • Please log in to reply
12 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 13 September 2009 - 09:17 PM

This script is primarily one of the starter tools I designed for my new WimEx project.

But I think that it also can be useful for existing projects, and therefore I publish it as 'usable preview' right now.

Especially in Win7RescuePE last weeks the issue came up, that dependend on the source CD (Enterprise!) the image indexes vary.

This script helps the user to choose the image he wants to use for his PE build.

Screenshoot:
WimInfo.gif
How it works:
It uses the app 'WimInfo.exe' which I wrote for this purpose.

WimInfo.exe:
  • does not need a WAIK
  • does not need WimUtils or similar
  • does not need wimgapi.dll installed
It is just a side-result of the 'raw WIM reader' I'm working on.

WimInfo.exe fills the scroll boxes with the image indexes of the actual source CD. The user can decide which images he / she wants to use for the project build.

The choosen indexes are passed as variables to the project, which can use them e.g. inside PreConfig.

Some security checks: If e.g. the source CD has been changed, !ImageIndex.script complains that you have to rebuild the list and make a new choice.

You can download the script here: http://nativeex.boot.../ImageIndex.zip

Peter

#2 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 13 September 2009 - 10:14 PM

This script helps the user to choose the image he wants to use for his PE build.

WOW, very good work! :)
To late for Win7RescuePE V13, but the next on my to do list for V14. :)

Joshua

#3 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 14 September 2009 - 08:02 AM

WOW, very good work! :)


Hmm, :) happens.
Under Windows7, i sometimes get this.
WimInfoError.jpg

Joshua

#4 pscEx

pscEx

    Platinum Member

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

Posted 14 September 2009 - 08:05 AM

Hmm, :) happens.
Under Windows7, i sometimes get this.
WimInfoError.jpg

Joshua


OOPS!

64 bit?

I'll install Win7 in my test partition.

Peter

#5 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 14 September 2009 - 08:20 AM

64 bit?

No, 32 bit RTM-German

Joshua

#6 paraglider

paraglider

    Gold Member

  • .script developer
  • 1743 posts
  • Location:NC,USA
  •  
    United States

Posted 14 September 2009 - 12:03 PM

Works ok on win7 x64 rtm us english version.

#7 pscEx

pscEx

    Platinum Member

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

Posted 14 September 2009 - 12:13 PM

No, 32 bit RTM-German

Joshua

script version 2 runs w/o troubles on my new Win7 32 bit German installation.
(version 1 reproduces your troubles on my win7)

Peter

#8 pscEx

pscEx

    Platinum Member

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

Posted 14 September 2009 - 12:19 PM

Version 2 is online! URL in the first post.

Changes:
  • Scrollbox choice is done by WimInfo.exe (hopefully correct in most situations. If not: Sorry, user has to change)
  • Some new variables are generated:
  • %WimLanguage%
  • %WimArchitecture%
    currently I see: 0 > x86, 9 > x64
  • Version:
  • %WimMajor%
  • %WimMinor%
  • %WimBuild%
  • %WimSPBuild%
  • %WimSPLevel%
[/list]I think that now the info which can be got from the WIM, is complete (as far as possibly needed for some script decisions)

Peter

#9 pscEx

pscEx

    Platinum Member

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

Posted 22 September 2009 - 05:40 PM

Version 5 online

Main changes:
  • No crash with invalid source CD
  • WimInfo.exe returns 0 in case of success, else Window error code.
The return code can be checked after the ShellExecute command in %exitcode%

Peter

#10 Joshua

Joshua

    Silver Member

  • Advanced user
  • 526 posts
  • Location:Germany
  • Interests:Computer, Bikes, and many others
  •  
    Germany

Posted 22 September 2009 - 06:09 PM

Version 5 online

Not Found
The requested document was not found on this server.


Joshua

#11 pscEx

pscEx

    Platinum Member

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

Posted 22 September 2009 - 06:15 PM

Sorry, I uploaded the .script rather than the .zip.

Corrected.

Peter

#12 pscEx

pscEx

    Platinum Member

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

Posted 01 November 2009 - 03:11 PM

Version 6 available. Link in the first post.

The script now handles also an alternate interface and interfaces in different languages.
For sample, German interface is implemented.

Peter

#13 pscEx

pscEx

    Platinum Member

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

Posted 01 November 2009 - 05:46 PM

Version 7 available. Link in the first post.

It fullfills a special wish of ctmag.

The 'default' index in the scroll box can be chosen following a list of tags which may be in the image name.

The list is displayed on a label and may be changed depending on the project (Does not disturbe certification!).

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users