Jump to content











Photo
- - - - -

Pack ppApps in separate iso


  • Please log in to reply
16 replies to this topic

#1 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 25 October 2011 - 02:14 PM

Hi all,

I’ve download Amalux’s liveXP project and it’s work perfectly.

I collect many app portables, and would like to put all in un iso file called “ppApps.iso” but I don’t know how to load those apps when liveXP boot up, certainly with ppAppgen script in my project.
I knew that “ppApps.iso” must be mounted automatically when the project startup. Please any one help me out?

Thanks in advance.

#2 maanu

maanu

    Gold Member

  • Advanced user
  • 1133 posts
  •  
    Pakistan

Posted 25 October 2011 - 03:54 PM

hmm , make a folder ppApps . add all your apps to it , make iso of the root folder. call imdisk mount command from batch file at start up of PE (Runonce) , to automount the iso file while pe boots.

#3 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 25 October 2011 - 04:04 PM

I collect many app portables, and would like to put all in un iso file called “ppApps.iso”

Just curious, what advantage to ISO as opposed to say, UFD/USB or just folder at root of hard drive? The mounted ISO, just like CD/DVD will work (latest ppApps) but will load slower; more like non-RAM PE.

#4 pscEx

pscEx

    Platinum Member

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

Posted 25 October 2011 - 04:40 PM

Just for the record:

4 years ago I presented a function which may offer what amateur needs: http://reboot.pro/21...dpost__p__13916

Because of missing interest I put the function to "sleep"

Peter

#5 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 26 October 2011 - 02:04 AM

Thanks guys for yours promt reply, my english is terrible may be not enought to explain the question!

hmm , make a folder ppApps . add all your apps to it , make iso of the root folder. call imdisk mount command from batch file at start up of PE (Runonce) , to automount the iso file while pe boots.


Thanks, could you give a tut? i'm new bie and don't know how to do that...


Just curious, what advantage to ISO as opposed to say, UFD/USB or just folder at root of hard drive? The mounted ISO, just like CD/DVD will work (latest ppApps) but will load slower; more like non-RAM PE.


Thank you for great project, i put in iso file to protect them from virut.


Just for the record:

4 years ago I presented a function which may offer what amateur needs: http://reboot.pro/21...dpost__p__13916


Thanks, i 'll have look.

my iso file is in the root of USB not in CD,can u provide the script for that?

#6 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1337 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 26 October 2011 - 05:03 PM

I think that your concern over "virus" isn't necessary, so I would "start" with just a directory...IMDISK is just a virtual CD driver. You need to add it to the PE so it will be available, then you could MANUALLY mount the ISO to start with, and then as you get more experience, make it automatic.

Scott

#7 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 26 October 2011 - 06:12 PM

I think that your concern over "virus" isn't necessary...

I agree, especially since the portables are sfx archives to begin with! The files used are extracted to a temp (RAM) directory and lost on reboot so no real danger of a virus surviving. This is one of the nice advantages to working from PE; the viruses are inactive on an off-line system.

#8 maanu

maanu

    Gold Member

  • Advanced user
  • 1133 posts
  •  
    Pakistan

Posted 27 October 2011 - 07:51 AM

may be the user wants his usb virus free in a sense , that ppApps being a folder on root of
usb ,, then the virus can spread into it , which normally spreads through usb drives. new folder.exe or something
.
for this purpose , yes , usb can be more secure . thats what i personally use if i am not using
UD space of fbinst , which hides everything into hidden partition. moreover , i use single WIM file
for both win7 and 2k3 pe , and it loads way faster then iso mounting, may be due to pecmd , i dont know.

but anyhow , it is good suggestion , to start with manual approach . but just for your interest ,here is IMDISK
automount iso command.

@FOR %%I IN (C D E F G H I J K L M N O P Q R S T) DO @IF EXIST %%I:ppApps.iso imdisk -a -f %%I:ppApps.iso

#9 maanu

maanu

    Gold Member

  • Advanced user
  • 1133 posts
  •  
    Pakistan

Posted 27 October 2011 - 07:51 AM

may be the user wants his usb virus free in a sense , that ppApps being a folder on root of
usb ,, then the virus can spread into it , which normally spreads through usb drives. new folder.exe or something
.
for this purpose , yes , usb can be more secure . thats what i personally use if i am not using
UD space of fbinst , which hides everything into hidden partition. moreover , i use single WIM file
for both win7 and 2k3 pe , and it loads way faster then iso mounting, may be due to pecmd , i dont know.

but anyhow , it is good suggestion , to start with manual approach . but just for your interest ,here is IMDISK
automount iso command.

@FOR %%I IN (C D E F G H I J K L M N O P Q R S T) DO @IF EXIST %%I:ppApps.iso imdisk -a -f %%I:ppApps.iso

#10 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 27 October 2011 - 08:21 AM

Hi Maanu,

thank you so much, but tell me where do i put this commande line? in which script or in *.cmd file?

#11 maanu

maanu

    Gold Member

  • Advanced user
  • 1133 posts
  •  
    Pakistan

Posted 27 October 2011 - 01:38 PM

i am sorry , i have no idea, since now em on to PECMD, i dont mess up with winbuilder scripts for these tasks. you will have to ask some expert like Amalux ..

#12 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 27 October 2011 - 02:08 PM

where do i put this commande line? in which script or in *.cmd file?

*.cmd file launched in script with something like:

Hive_Load,Machine
reg_add,0x2,%reg%MicrosoftWindowsCurrentVersionRunOnce,MountISO,"[hiderun.exe /w ]cmd.exe /C [hiderun.exe /w ]#$q%PElocation%your.cmd#$q"
Hive_Unload,Machine


Set,%PElocation%,%PE_Programs%%ProgramFolder% or #$pSystemroot#$pSys... etc.

[bracketed hiderun stuff] is optional to hide command boxes, remove brackets either way.

#13 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1337 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 27 October 2011 - 10:10 PM

One nice place to put them is in the "autorun" script :) in the BUILD folder...(Assuming you are using the Win7PE_SE project...But creating your own script to do this is an OK way too...

#14 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 28 October 2011 - 07:04 AM

hi Amalux
thank you for your script, but i'm still no luck
i copy my file "startup.cmd" to system32 folder, and write your script in autorun.script like below:


Hive_Load,Machine
reg_add,0x2,%reg%MicrosoftWindowsCurrentVersionRunOnce,MountISO,"hiderun.exe /w cmd.exe /C hiderun.exe /w #$pSystemroot#$pSys%startup.cmd#$q"
Hive_Unload,Machine

and startup commandline:
@FOR %%I IN (C D E F G H I J K L M N O P Q R S T) DO @IF EXIST %%I:ppApps.iso imdisk -a -f %%I:ppApps.iso

i've checked my autorun.script:

Title=Autoruns
Selected=False
Level=20
Version=13

is somthings wrong? pls correct it for me..

best regards,

#15 amalux

amalux

    Platinum Member

  • Tutorial Writer
  • 2813 posts
  •  
    United States

Posted 28 October 2011 - 02:31 PM

is somthings wrong? pls correct it for me..

Add " -m n:" at the end (n is mount point drive letter).

so full command:

@FOR %%I IN (C D E F G H I J K L M N O P Q R S T) DO @IF EXIST %%I:ppApps.iso imdisk -a -f %%I:ppApps.iso -m n:


I'm not getting the autorun.script reference but this can be added to any script, make sure it's selected=true

Something missing:

Hive_Load,Machine
reg_add,0x2,%reg%MicrosoftWindowsCurrentVersionRunOnce,MountISO,"hiderun.exe /w cmd.exe /C hiderun.exe /w #$pSystemroot#$pSys%startup.cmd#$q"
Hive_Unload,Machine


should be:

Hive_Load,Machine
reg_add,0x2,%reg%MicrosoftWindowsCurrentVersionRunOnce,MountISO,"hiderun.exe /w cmd.exe /C hiderun.exe /w #$q#$pSystemroot#$pSystem32startup.cmd#$q"
Hive_Unload,Machine


Sorry, I just trailed off there thinking it might be SysWOW64

#16 sbaeder

sbaeder

    Gold Member

  • .script developer
  • 1337 posts
  • Location:usa - massachusettes
  •  
    United States

Posted 28 October 2011 - 06:09 PM

And be sure to "select" the script...(make sure you check the box)...Your info above shows it is NOT selected, so winbuilder won't process it :)

#17 amateur

amateur
  • Members
  • 7 posts
  •  
    Vietnam

Posted 02 November 2011 - 10:17 AM

Solver! i creat my own script then it work! thanks to RoyM
http://reboot.pro/14319/

[process]
ExtractAllFiles,"%ScriptFile%","Folder","%Target_Sys%"
Add_Shortcut,Desktop,,"#$pSystemRoot#$psystem32File.bat","File.bat"

*** NEXT EXAMPLES LOAD FILE.BAT ON STARTUP, JUST USE ONE OF THEM AS APPROPRIATE ***
*** DEPENDING ON WHAT FILE.BAT DOES, YOU MAY WANT TO VARY WHEN IT LOADS AT BOOT TIME ***
*** (I.E) DRIVERS YOU MAY WANT TO LOAD EARLY, OTHER TASKS MAYBE NOT SO EARLY ***

*** RUNNING FROM WINPESHL.INI ANYTHING HERE LOADS VERY EARLY IN BOOT ***
TXTAddLine,%target_sys%winpeshl.ini,"File.bat",APPEND


*** RUNNING FROM RUNONCE ***
Hive_Load,HKCU
Reg_add,0x1,%reg%SoftwareMicrosoftWindowsCurrentVersionRunOnce,File.bat,"hiderun File.bat"
Hive_UnLoad,HKCU

*** RUNNING FROM START.CMD ***
If,NOT,EXISTFILE,%TargetDir%Windowssystem32start.cmd,FileCreateBlank,%TargetDir%Windowssystem32start.cmd
TXTAddLine,%TargetDir%Windowssystem32start.cmd,start#$s/min#$sFile.bat,PREPEND

*** RUNNING FROM AUTORUN.CMD ***
TXTAddLine,%TargetDir%windowssystem32autorun.cmd,"File.bat",Append

Add_Shortcut,AutoRun,,"#$pSystemRoot#$psystem32File.bat","File.bat"


Edited by amateur, 02 November 2011 - 10:19 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users