Jump to content











Photo

Newcomer's Tutorial - LiveXP, Win7PE & Portable Apps!


  • Please log in to reply
355 replies to this topic

#176 pscEx

pscEx

    Platinum Member

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

Posted 17 April 2012 - 07:34 PM

I see what you're saying, that kinda sounds like it might be doing that. I personally feel the issue is in the PostConfig script so I'm running winbuilder right now without using that script, to see if I get new results. Should be done in the next 10 minutes.

:1st:
Because here in Europe for (retired old peope like) me it is late in the evening, maybe, I'll not react on your next post immediatelly..
But Amalux is in the same time environment like you ...

Good luck for tonight.

If tomorrow there are still issues, I'll be ready again.

Peter :cheers:

#177 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 17 April 2012 - 07:34 PM

It finished building, the directory includes the windows files but it obviously didn't put it into a wim file. If I were to manually /capture this what should I capture? Specific directories? And then should I place that wim file in the sources directory?

#178 pscEx

pscEx

    Platinum Member

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

Posted 17 April 2012 - 07:36 PM

Try my suggesion about ImageX in a cmd window, some posts above!

Good night for today!

Peter

#179 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 17 April 2012 - 07:38 PM

I will try that now, thanks for your time now, hopefully the problem will be fixed before you wake up!

Jason

#180 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 April 2012 - 07:50 PM

OK, everything tested good, building in host which matches your specs, using Win7 Ult SP0 x86 source. Now let me try with x64 source...

#181 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 17 April 2012 - 08:00 PM

I'm actually using Windows 7 Home Premium x86 disk. Does that change anything?

#182 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 April 2012 - 08:32 PM

I just tested with x64 Ult source, works as well; I tried SP0 and SP1 too. Let me compare the logs with yours to see if anything jumps out. Win 7 Home Prem x86 should be fine but I'll have to look to see if I have that one handy to test. Are you sure there isn't some (possibly hidden) anti-virus lurking in the background, like Defender or ???

#183 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 17 April 2012 - 08:36 PM

Yes, but I must have checked imagex wrong earlier. I rebuilt it after deleting the part in the script about deleting the boot.tmp directory. I'm manually capturing that folder right now but I'm getting Access Is Denied. I have UAC disabled (I believe I do, its set to Never Notify), I changed ownership to myself, I set everything to full access, but the directory is still Read Only and saying Access is Denied.

#184 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 April 2012 - 09:26 PM

There is apparently some control and permissions issues; I'll try to find a home prem to play with but I assume something like this will be in order.
http://answers.micro...3f-150dce4c5aed

Is there a Security tab in Properties pane? If not, maybe this could help.
http://www.sevenforu...properties.html

If home won't allow you to do this, that could be a problem. Hopefully someone who knows more about Windows 7 Home version can chime in but this sounds like typical M$ BS, XP Home was a bad joke.

Still looking for Windows 7 Home machine to run some tests...

#185 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 777 posts
  •  
    France

Posted 17 April 2012 - 09:57 PM

There is indeed a problem with the capture of Boot.tmp for you.
Strange, no problem with mount/unmount, just with the /capture switch !
difficult to know from where come the exitcode 2, it can come from an agressive AV. Well to try to exclude the project folder in your AV.

In postconfig script, not to let him continue in this case and removing Boot.tmp, you can change that part of code with this.


If,%WimTools%,Equal,ImageX,Begin

  If,%pCompressionGroup%,Equal,0,ShellExecute,%ShowImageX%,%IMAGEX%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot"

  If,%pCompressionGroup%,Equal,1,ShellExecute,%ShowImageX%,%IMAGEX%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /compress maximum"

  Echo,"%WimTools% Packing boot.wim return : %ExitCode%"

  If,Not,%ExitCode%,Equal,0,Run,%scriptfile%,ErrorPack,boot.wim

End

If,%WimTools%,Equal,WimUtil,Begin

  If,%pCompressionGroup%,Equal,0,ShellExecute,Hide,%WIMUTIL%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /xpress %ShowWimUtil%"

  If,%pCompressionGroup%,Equal,1,ShellExecute,Hide,%WIMUTIL%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /lzx %ShowWimUtil%"

  Echo,"%WimTools% Packing boot.wim return : %ExitCode%"

  If,Not,%ExitCode%,Equal,0,Run,%scriptfile%,ErrorPack,boot.wim

End

//--

DirDelete,"%BootTMP%"



[ErrorPack]

Message,"A problem occurred to Pack #1 with %WimTools% return Code : %ExitCode% !!!#$x#$xExiting..."

Halt,"A problem occurred to Pack  #1 with %WimTools% return Code : %ExitCode%. Exiting..."


If the error persists try manually imagex /capture in cmdline (you can do also, a test with an other folder ).

Edit: you can also try by choosing WimUtil in "image configuration", it produces a wimutil.log in %temp% directory, Perhaps more expressive than imagex return 2.
WimUtil.exe /Capture "image_path" "image_file" "image_name" /boot /xpress

#186 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 April 2012 - 10:48 PM

Hi Chris :)

Thanks for info and input; coincidentally, I was reading about 'ImageX Packing boot.wim return : 2' issue here: http://theoven.org/index.php?topic=267.20 since it's the only appreciable difference between dirtyrobinson's log and mine which was successful. That and one other thing caught my eye, could it be so simple? Both failed logs show spaces in source folder name... I'm gonna try just to see...

#187 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 17 April 2012 - 11:04 PM

There is apparently some control and permissions issues; I'll try to find a home prem to play with but I assume something like this will be in order.
http://answers.micro...3f-150dce4c5aed

Is there a Security tab in Properties pane? If not, maybe this could help.
http://www.sevenforu...properties.html

If home won't allow you to do this, that could be a problem. Hopefully someone who knows more about Windows 7 Home version can chime in but this sounds like typical M$ BS, XP Home was a bad joke.

Still looking for Windows 7 Home machine to run some tests...


I've followed all options for changing permissions on files and folders and none of them granted me permission. I am an administrator account (only account on the computer), I changed the owner in the security tab to my account, I have full access selected for everything in the security tab, I tried icacls and attrib commands in the command prompt, and everything was opened (cmd.exe and windows explorer) as administrator. I'm to the point where I may load my computer up via my Fedora flash drive and change the attributes in there since Windows isn't allowing me to change them.

There is indeed a problem with the capture of Boot.tmp for you.
Strange, no problem with mount/unmount, just with the /capture switch !
difficult to know from where come the exitcode 2, it can come from an agressive AV. Well to try to exclude the project folder in your AV.

In postconfig script, not to let him continue in this case and removing Boot.tmp, you can change that part of code with this.


If,%WimTools%,Equal,ImageX,Begin

  If,%pCompressionGroup%,Equal,0,ShellExecute,%ShowImageX%,%IMAGEX%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot"

  If,%pCompressionGroup%,Equal,1,ShellExecute,%ShowImageX%,%IMAGEX%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /compress maximum"

  Echo,"%WimTools% Packing boot.wim return : %ExitCode%"

  If,Not,%ExitCode%,Equal,0,Run,%scriptfile%,ErrorPack,boot.wim

End

If,%WimTools%,Equal,WimUtil,Begin

  If,%pCompressionGroup%,Equal,0,ShellExecute,Hide,%WIMUTIL%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /xpress %ShowWimUtil%"

  If,%pCompressionGroup%,Equal,1,ShellExecute,Hide,%WIMUTIL%,"/capture  #$q%BootTMP%#$q #$q%TargetDir%sourcesboot.wim#$q #$qWin7PE#$q /boot /lzx %ShowWimUtil%"

  Echo,"%WimTools% Packing boot.wim return : %ExitCode%"

  If,Not,%ExitCode%,Equal,0,Run,%scriptfile%,ErrorPack,boot.wim

End

//--

DirDelete,"%BootTMP%"



[ErrorPack]

Message,"A problem occurred to Pack #1 with %WimTools% return Code : %ExitCode% !!!#$x#$xExiting..."

Halt,"A problem occurred to Pack  #1 with %WimTools% return Code : %ExitCode%. Exiting..."


If the error persists try manually imagex /capture in cmdline (you can do also, a test with an other folder ).

Edit: you can also try by choosing WimUtil in "image configuration", it produces a wimutil.log in %temp% directory, Perhaps more expressive than imagex return 2.
WimUtil.exe /Capture "image_path" "image_file" "image_name" /boot /xpress


I ran imagex from the cmd prompt and it gives me Access is Denied. I used WimUtil.exe as well and it ran to about 25% and then failed and closed. I'm not seeing any log for it but when I tried to copy the directory to a different location the only 2 files that wouldn't copy were Hiderun.exe and Ux.exe.

Hi Chris :)

Thanks for info and input; coincidentally, I was reading about 'ImageX Packing boot.wim return : 2' issue here: http://theoven.org/index.php?topic=267.20 since it's the only appreciable difference between dirtyrobinson's log and mine which was successful. That and one other thing caught my eye, could it be so simple? Both failed logs show spaces in source folder name... I'm gonna try just to see...


I'm gonna dig through this thread and see if there's anything mentioned that I can try.

I'm sorry if this is turning into a pain and I feel bad if my lack of experience on this stuff is causing something to "break".

#188 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 18 April 2012 - 12:57 AM

Fwiw, spaces in the folder name don't cause any problem and everything else I've tried still results in a successful build. There is
no difference in your failed log and my successful one (except your host OS is Home) before or after the
ImageX Packing boot.wim return : 2
line. 0 results in success, 2 results in failure.

Then, at the end of Create ISO script, it becomes clear the damage done. No errors, just a folder that's 16MB instead of 280, very strange.

This is one of those things where I'd install Windows 7 fresh, just to be sure but I understand this isn't so easy for some people. This is where hard drive backup images really show there worth, restoring to a clean install takes 5 minutes but of course this won't help if Home is the issue. Perhaps a trial install of Ultimate, just to see? If anyone else has Home and can confirm these issues, it would really help ;)

Tomorrow, I should be able to get a Windows 7 Home Prem setup to test.

#189 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 18 April 2012 - 03:54 AM

Alright, I think the bulk of the problem was not having proper permissions in Windows 7 Home Premium. I tried everything imaginable to enable proper ownership and permissions and nothing worked. No matter what I did, there were 2 files that were always unavailable (Hiderun.exe and Ux.exe) and whatever I did to the folder failed due to proper access. I disabled the PostConfig and CreateISO scripts so it would leave the temp files in place (I later removed the part in the scripts about deleting this directory so I could re-enable those scripts). I tried to manually /capture the folder with WimUtil.exe and ImageX.exe. Neither started because access was denied.

I checked all the computers in the house here, 7 to be exact, and one of them had something other than Home Premium. The test script worked on Windows 7 Professional so I am now building the full version with extra scripts.

I doubt I'm the first person to use the Win7PE_SE winbuilder on Home Premium but I'm looking forward to your success on a similar machine. I've learned a lot about what goes on in these scripts and I really appreciate you guys stepping in to take a look for me!

Edited by dirtyrobinson, 18 April 2012 - 03:55 AM.


#190 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 18 April 2012 - 05:02 AM

I'm looking forward to your success on a similar machine.


I don't know why this thought took so long to enter my brain but I have 5 similar machines around me... I'll put everything on another machine and see if I get similar results, 1 computer has a fresh install so I'll try that one first.

#191 ChrisR

ChrisR

    Silver Member

  • .script developer
  • 777 posts
  •  
    France

Posted 18 April 2012 - 10:51 AM

That and one other thing caught my eye, could it be so simple? Both failed logs show spaces in source folder name... I'm gonna try just to see...

Hi Amalux :)
I just tried again with a spaces in source folder name, No problem.

I think it's good to add the above code in postconfig, with perhaps, in addition, the return to the previous situation, before postconfig script

If,Not,%ExitCode%,Equal,0,Run,%scriptfile%,ErrorPack,boot.wim 



[ErrorPack] 

DirMove,%BootTMP%*,%targetdir%

DirDelete,%BootTMP%

Message,"A problem occurred to Pack #1 with %WimTools% return Code : %ExitCode% !!!#$x#$xExiting..." 

Halt,"A problem occurred to Pack  #1 with %WimTools% return Code : %ExitCode%. Exiting..."

#
I understand that this problem is not really easy for you, even for all of us it is very diffcult to help on these ImageX errors.
The main problem is that the return code or messages about Billy drivers are not explicit at all.

For Mount/Unmount there is a good workaround with "Extract Wim folders" in Utils but not for the /capture switch.

I doubt I'm the first person to use the Win7PE_SE winbuilder on Home Premium but I'm looking forward to your success on a similar machine. I've learned a lot about what goes on in these scripts and I really appreciate you guys stepping in to take a look for me!


No, you are not the first person to use the Win7PE_SE winbuilder on Home Premium and I have also a pc with it and without any errors building.
But good to test it on another machine :)

WimUtil: I'm not seeing any log for it but when I tried to copy the directory to a different location the only 2 files that wouldn't copy were Hiderun.exe and Ux.exe.


For WimUtil, the WimUtil.log is in %temp% folder (C:UsersJasonAppDataLocalTemp), enter %temp% in explorer path, at the top.
I strongly believe to an issue related with your AntiVirus, What AV do you use.

Some tricks to try:
. disable UAC, I think it's done.
. Reboot your computer.
. Enter Project folder in the exclusion list of your AV (I guess important in this case).
. WimUtil with the log, above.
. Play with Imagex /capture or WimUtil /capture with other folders also.

Happy Testing B)

#192 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 18 April 2012 - 01:48 PM

I don't know why this thought took so long to enter my brain but I have 5 similar machines around me... I'll put everything on another machine and see if I get similar results, 1 computer has a fresh install so I'll try that one first.

It should work! I just pulled Windows 7 SP1 Home Premium x64 from a MICROSOFT.WINDOWS.7.ULTIMATE.RTM.WITH.SP1.X64.RETAIL.ENGLISH.DVD, installed fresh to hp AMD 64 machine and ran W7.041412_Test to an uneventful, successful conclusion. So it's not Home that's the issue, maybe SP1 helps?

Whenever I've had (similar) problems like this in the past, a fresh install of the OS generally resolves it. I always disable UAC, Defender and Windows Firewall right from the start so maybe one of those is your culprit. If I have time I'll try re-enabling those to see if I can reproduce your issue. Again, I didn't install WAIK so I don't see where that's an issue unless your installed version somehow causes conflict (?).

It's good you're testing on different machines with fresh installs, this will eliminate certain voodoo hardware issues e.g. bad memory etc. and third party software conflicts. Wish I could be more help but if I can't reproduce an issue it's difficult to know how to proceed. Best of luck, we're always here if you have more questions :)

@ChrisR

Thanks again for the guidance and help, I'll add that code to the script; at least when this issue occurs it won't go unannounced ;)

:cheers:

#193 dirtyrobinson

dirtyrobinson

    Newbie

  • Members
  • 17 posts
  •  
    United States

Posted 18 April 2012 - 08:54 PM

For WimUtil, the WimUtil.log is in %temp% folder (C:UsersJasonAppDataLocalTemp), enter %temp% in explorer path, at the top.
I strongly believe to an issue related with your AntiVirus, What AV do you use.

Some tricks to try:
. disable UAC, I think it's done.
. Reboot your computer.
. Enter Project folder in the exclusion list of your AV (I guess important in this case).
. WimUtil with the log, above.
. Play with Imagex /capture or WimUtil /capture with other folders also.


I use AVG but I've had it disabled for about a week, since I started playing around with winbuilder. I disabled the services as well to make sure none of it is running. Something I haven't tried though, is disabling the firewall. Firewall is the only part of security I haven't disabled, never thought of disabling it actually, but I'm not sure thats the issue here.

I'm gonna test it on a different machine tonight and if it works fine on the other home premium computers, I might look at doing a fresh OS install on this machine. I'll post again after I test and/or after I do a fresh install.

Again, I wanna thank you guys so much for looking into the problem and giving me some guidance on it! Now that I'm technically passed the initial build part, time to learn how to customize it (mainly drivers)!

#194 piggos

piggos

    Newbie

  • Members
  • 24 posts
  •  
    Greece

Posted 17 May 2012 - 12:26 AM

I need some help here. I read your guide in the first post more than ten times, and I succesfully made some ISOs with NettyPE and multiPE. Burned and tested on a CD.

My problem is with the creation of a bootable UFD. It is straightforward to make one for an XP installation. But what about Win7? How do I make one using the ISOs I just made?

Edited by piggos, 17 May 2012 - 12:28 AM.


#195 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 May 2012 - 02:35 AM

My problem is with the creation of a bootable UFD. It is straightforward to make one for an XP installation. But what about Win7? How do I make one using the ISOs I just made?

Exactly the same way! If you have a bootable UFD with e.g.

title LiveXP_WIM Rescue

find --set-root /XPE/LiveXP_WIM.ISO

map /XPE/LiveXP_WIM.ISO (0xff)

map --hook

root (0xff)

chainloader (0xff)

Then just add the following to menu.lst
title Win7PE_SE Rescue

find --set-root /XPE/Win7PE_x86.ISO

map /XPE/Win7PE_x86.ISO (0xff)

map --hook

root (0xff)

chainloader (0xff)

and include your Win7PE_x86.ISO at the same XPE folder location. You should see it in the menu at startup and when selected boot to it.

If you change the name of the ISO or the XPE directory be sure to adjust the menu.lst code accordingly. What happens exactly when you try this?

#196 piggos

piggos

    Newbie

  • Members
  • 24 posts
  •  
    Greece

Posted 17 May 2012 - 08:16 AM

I told you it is straightforward. I didn't tell you that I ve done it :)

I don't have an XP machine, so I cannot find boot.ini somewhere. Should I produce one from scratch and copy your code?

Edited by piggos, 17 May 2012 - 08:26 AM.


#197 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 17 May 2012 - 04:08 PM

I don't have an XP machine, so I cannot find boot.ini somewhere. Should I produce one from scratch and copy your code?

The download here (in the tutorial you read 10x ;) ) contains everything you need including boot.ini for UFD. Just giving you a hard time :)

Seriously, ask any questions you want, happy to help.

:cheers:

#198 piggos

piggos

    Newbie

  • Members
  • 24 posts
  •  
    Greece

Posted 18 May 2012 - 02:55 PM

The download here (in the tutorial you read 10x ;) ) contains everything you need including boot.ini for UFD. Just giving you a hard time :)

Seriously, ask any questions you want, happy to help.

:cheers:

Sorry my friend that i didn't check this topic. Being harassing Peter at the MultiPE topic for the last two days :)

Indeed you are right. My bad didn't see it. Downloaded it and made a bootable UDF just fine. Thanks!

Edited by piggos, 18 May 2012 - 02:56 PM.


#199 pscEx

pscEx

    Platinum Member

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

Posted 18 May 2012 - 03:08 PM

Being harassing Peter at the MultiPE topic for the last two days :)

A bit OffTopic: Succesfully!

Peter :bounce8:

#200 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2,813 posts
  •  
    United States

Posted 18 May 2012 - 04:10 PM

Indeed you are right. My bad didn't see it. Downloaded it and made a bootable UDF just fine. Thanks!

No problem my friend, glad to hear everything is working :)

:cheers:




6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users