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

53 Pages V  « < 47 48 49 50 51 > »   
Reply to this topic
 Separation of system-core and user-stuff: LODR-packs, Development Topic about LODR-U idea ****
Rating 5 V
post Feb 4 2009, 02:44 AM
Post #481
Galapo
Platinum Member   ******
Group: .script developer

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


Australia


OK, new LODR-loader script here. Source-code here.

New IZArc LODR-pack here.

New LODR-loader now sets data relating to LODR-packs location to 'HKLM\SOFTWARE\LODR\Environment,LODR_path'. Either "ntfs", "writeable", or "unwriteable".

Option to hide (ie, with "-hide" commandline parameter) has been removed, given that batches are likely to contain pauses.

@Amalux
New commandline parameter "-pin" has been added, which may be set by the script interface. Leaving the option unchecked results in shortcuts being placed in the "Programs" StartMenu folder; selecting to "pin" results in the folder being placed at the top of the StartMenu.


New IZArc batch looks like this:

EDIT: Batch removed as new one posted below.

Note that the batch now makes a check to see if LODR-packs location is writeable. This is mandatory when REG files may need patching, as in the case of redirecting WIM file mounting to %temp% drive when %programfiles% is not ntfs but %temp% is.

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:
amalux
+Quote Post
post Feb 4 2009, 06:39 AM
Post #482
Galapo
Platinum Member   ******
Group: .script developer

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


Australia


New LODR-loader script and IZArc-pack have again been made. Links are in post above.

LODR-loader now checks, as per Lancelot's suggestion, whether %ProgramFiles% is able to accept mounting of WIM image (eg, in case WIM image has been directly mounted to %ProgramFiles%). Status is written to 'HKLM\SOFTWARE\LODR\Environment,ProgramFilesMounting', either "mountable" or "unmountable".

New IZArc batch makes such dependency checks. Also a bit more error info is outputted for user.

CODE
CALL :checks
CALL :ProgramFiles
IF NOT DEFINED programfilesdir CALL :temp
IF NOT DEFINED programfilesdir echo. &echo ProgramFiles location could not be dermined or set &echo. &echo Possible cause may be either ProgramFiles location not accepting WIM mounting or TEMP location is not ntfs &echo. &PAUSE &EXIT

:: == USER LODR BATCH SECTION ===========================================

if not exist "%programfilesdir%\IZArc\IZArc.exe" md "%programfilesdir%\IZArc"
rem compact /U /I /Q "%programfilesdir%\IZArc"
rem if not exist "%programfilesdir%\IZArc\IZArc.exe" junction "%sfx%\IZArc" "%programfilesdir%\IZArc"
if not exist "%programfilesdir%\IZArc\IZArc.exe" imagex /mount "%sfx%\LODR-archive-IZArc3.81.wim" 1 "%programfilesdir%\IZArc"
if not exist "%programfilesdir%\IZArc\IZArc.exe" pause &exit

IF "%programfilesdir%"=="%ProgramFiles%" (
AutoIt3.exe "%sfx%\LODR-reg-IZArc3.81.au3"
start "IZArc" "%ProgramFiles%\IZArc\IZArc.exe"
EXIT
) ELSE (
:: Syntax here is: LODR-loader.exe EXE_to_start REG_import_commandline /patch current_file var1=%var1_patch%|var2=%var2_patch%
LODR-loader.exe "%programfilesdir%\IZArc\IZArc.exe" "AutoIt3.exe ""%sfx%\LODR-reg-IZArc3.81.au3""" /patch "%~DP0\%~nx0" "ProgramFiles=%programfilesdir%"
EXIT)

:Environment_Dependencies
:: NOTE 1: dependecies' options are "ntfs", "writeable", and "unwriteable"
:: NOTE 2: set "depLODR-Packs_Location" variable to "writeable" when REG files may require patching
:: (eg in the case where app is run from %temp% drive when %programfiles% is not writeable)
:: NOTE 3: set "depLODR-Packs_Location" variable to "ntfs" when junctioning app directory
:: NOTE 4: set "depProgramFilesMounting" variable to "Yes" when LODR-pack mounts a WIM image
::
SET depLODR-Packs_Location=writeable
SET depSystemRoot=unwriteable
SET depProgramFiles=ntfs
SET depTEMP=writeable
SET depProfilesDirectory=unwriteable
SET depProgramFilesMounting=Yes
GOTO :EOF

[LODR]
:: NOTE: ALWAYS provide "RegFiles" list if file(s) contain hard-coded paths
:: ALWAYS then list what variables correspond to paths in REG file(s)
:: For example: "%ProgramFiles%=X:\Program Files|%SystemDrive%\Program Files"
Shortcut_number=1
Shortcut1=File Tasks\Compression\IZArc
Shortcut_Parameters1=
Icon1=LODR-icon-IZArc3.81.ico
RegFiles=LODR-reg-IZArc3.81.au3
Hardcoding=Yes
%ProgramFiles%=X:\Program Files|%SystemDrive%\Program Files
%SystemRoot%=
%SystemDrive%=
%WinDir%=
%TEMP%=
%TMP%=
%ALLUSERSPROFILE%=
%USERPROFILE%=


:: == END OF USER LODR BATCH SECTION ====================================


:: ======================================================================
:: DO NOT MODIFY BELOW HERE!
:: ======================================================================

:checks
reg.exe query HKLM\SYSTEM\CurrentControlSet\Control\minint >nul 2>&1
if errorlevel 1 echo. &echo It is strongly advised not to run LODR-packs outside PE environment &echo. &pause &exit
IF NOT DEFINED sfx SET sfx=%~DP0
CALL :Environment
CALL :Environment_Dependencies
CALL :Environment_Check
GOTO :EOF

:Environment_Check
IF /i %depLODR-Packs_Location%==ntfs (
IF /i %varLODR-Packs_Location%==writeable echo. &echo LODR app requires ntfs LODR-packs location &echo. &PAUSE &EXIT
IF /i %varLODR-Packs_Location%==unwriteable echo. &echo LODR app requires ntfs LODR-packs location &echo. &PAUSE &EXIT
)
IF /i %depLODR-Packs_Location%==writeable (
IF /i %varLODR-Packs_Location%==unwriteable echo. &echo LODR app requires writeable LODR-packs location &echo. &PAUSE &EXIT
)
IF /i %depSystemRoot%==ntfs (
IF /i %varSystemRoot%==writeable echo. &echo LODR app requires ntfs SystemRoot location &echo. &PAUSE &EXIT
IF /i %varSystemRoot%==unwriteable echo. &echo LODR app requires ntfs SystemRoot location &echo. &PAUSE &EXIT
)
IF /i %depSystemRoot%==writeable (
IF /i %varSystemRoot%==unwriteable echo. &echo LODR app requires writeable SystemRoot location &echo. &PAUSE &EXIT
)
IF /i %depProgramFiles%==ntfs (
IF /i %varProgramFiles%==writeable echo. &echo LODR app requires ntfs SystemRoot location &echo. &PAUSE &EXIT
IF /i %varProgramFiles%==unwriteable echo. &echo LODR app requires ntfs ProgramFiles location &echo. &PAUSE &EXIT
)
IF /i %depProgramFiles%==writeable (
IF /i %varProgramFiles%==unwriteable echo. &echo LODR app requires writeable ProgramFiles location &echo. &PAUSE &EXIT
)
IF /i %depTEMP%==ntfs (
IF /i %varTEMP%==writeable echo. &echo LODR app requires ntfs TEMP location &echo. &PAUSE &EXIT
IF /i %varTEMP%==unwriteable echo. &echo LODR app requires ntfs TEMP location &echo. &PAUSE &EXIT
)
IF /i %depTEMP%==writeable (
IF /i %varTEMP%==unwriteable echo. &echo LODR app requires writeable TEMP location &echo. &PAUSE &EXIT
)
IF /i %depProfilesDirectory%==ntfs (
IF /i %varProfilesDirectory%==writeable echo. &echo LODR app requires ntfs ProfilesDirectory location &echo. &PAUSE &EXIT
IF /i %varProfilesDirectory%==unwriteable echo. &echo LODR app requires ntfs ProfilesDirectory location &echo. &PAUSE &EXIT
)
IF /i %depProfilesDirectory%==writeable (
IF /i %varProfilesDirectory%==unwriteable echo. &echo LODR app requires writeable ProfilesDirectory location &echo. &PAUSE &EXIT
)
GOTO :EOF

:Environment
SET varLODR-Packs_Location=unwriteable
SET varSystemRoot=unwriteable
SET varProgramFiles=unwriteable
SET varTEMP=unwriteable
SET varProfilesDirectory=unwriteable
SET varProgramFilesMounting=unmountable
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v LODR_path') DO SET varLODR-Packs_Location=%%B
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v SystemRoot') DO SET varSystemRoot=%%B
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v ProgramFiles') DO SET varProgramFiles=%%B
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v TEMP') DO SET varTEMP=%%B
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v ProfilesDirectory') DO SET varProfilesDirectory=%%B
FOR /F "tokens=2* delims= " %%A IN ('REG QUERY "HKLM\SOFTWARE\LODR\Environment" /v ProgramFilesMounting') DO SET varProgramFilesMounting=%%B
GOTO :EOF

:ProgramFiles
SET vname=""
FOR /F "tokens=1 delims= " %%P IN ('fsutil fsinfo volumeinfo %ProgramFiles:~0,3% ^| FIND "NTFS"') DO SET vname=%%P
IF %vname%==File (
IF %depProgramFilesMounting%==Yes IF /i NOT %varProgramFilesMounting%==unmountable SET programfilesdir=%ProgramFiles%
)
GOTO :EOF

:temp
SET vname=""
FOR /F "tokens=1 delims= " %%P IN ('fsutil fsinfo volumeinfo %TEMP:~0,3% ^| FIND "NTFS"') DO SET vname=%%P
IF %vname%==File SET programfilesdir=%TEMP:~0,2%\LODRPrograms
GOTO :EOF


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 Feb 4 2009, 12:42 PM
Post #483
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


QUOTE (sanbarrow @ Feb 3 2009, 04:23 PM) *
nmap -sS -vv "some local IP"
yep this works but still (start zenmap\zenmap.exe) dont work.
also is there a switch for
start /wait winpcap-nmap-4.02.exe
so when nmap already installed no warning screen comes


--------------------
+Quote Post
post Feb 4 2009, 07:03 PM
Post #484
sanbarrow
Silver Member   ****
Group: Developer

  Joined: 13-October 06 From: Germany - Sauerland

Posts: 751
Thank(s): 40


QUOTE
also is there a switch for
start /wait winpcap-nmap-4.02.exe


Good question - I don't know a switch that would install winpcap silently.
Neither the regular Nmap-setup nor the Wireshark-setup install winpcap silently.
Maybe the winpcap authors don't added a switch ???
Sorry - don't know yet.

Lancelot - here I can launch Zenmap in LiveXP - build with msi-support and all other scripting options enabled under "system"
+Quote Post
post Feb 4 2009, 11:23 PM
Post #485
Lancelot
Frequent Member   ******
Group: .script developer

  Joined: 8-May 08 From: Turkiye/Izmir

Posts: 3,520
Thank(s): 380


Turkiye


sanbarrow,

well i enable msi-support, system scripts, winpcap-nmap-4.02.exe installs successfully with vcredist_x86.exe, but still nope, nmap still working but zenmap not, i guess i am missing sth. Can you give another Nmap.7z again in case!

also there is sth missing with msi.script, i wrote in detail to here at post 1097, maybe you have an idea?


--------------------
+Quote Post
post Feb 4 2009, 11:59 PM
Post #486
sanbarrow
Silver Member   ****
Group: Developer

  Joined: 13-October 06 From: Germany - Sauerland

Posts: 751
Thank(s): 40


Hmm - what sources are you using ?
I created the installrite package using 2k3-sp2.
The test with LiveXP was done with 2k3-r2 sources - which worked here.

+Quote Post
post Feb 9 2009, 01:01 PM
Post #487
sanbarrow
Silver Member   ****
Group: Developer

  Joined: 13-October 06 From: Germany - Sauerland

Posts: 751
Thank(s): 40


I have a first experimental LODR-pack for dotnet3 working.

Translating this to the standards we discussed here is way beyond my skills.
Anyway - if anybody is interested in translating this to LiveXP I can try to explain.
The procedure for grabbing the required files is a nightmare.

Once created you need a wim about 170 Mb and about 30 Mb of free space in NTFS-formatted X:

+Quote Post
post Feb 10 2009, 08:07 AM
Post #488
joakim
Frequent Member   ***
Group: Members

  Joined: 18-April 08 From: Bergen

Posts: 412
Thank(s): 86


Norway


I am soon finished with an updated version of ws651.

One of the parts that will be changed is the implementation of virtual networking (nat/dhcp/bridge...vmnet0-9). This one is tricky to just hotplug into a readonly cdfs system (x:\).

Question:

Is there a way to redirect the inf folder to %temp% on cdfs? The problem I face is .pnf files generated in inf folder, that must either not be generated at all or preferably redirected to %temp%\inf. Could it be that overwriting the corresponding dirid will work. If so, how can that be done? Is rundll32 capable of that? I'm stuck!

Reason is, vnetlib (the virtual networking command line engine) seems only fully functional when added this way through inf.

Joakim
+Quote Post
post Mar 20 2009, 07:49 PM
Post #489
amalux
bug-catcher   *****
Group: Tutorial Writer

  Joined: 1-February 07 From: California

Posts: 1,403
Thank(s): 169


United States


QUOTE (Galapo @ Feb 2 2009, 04:27 PM) *
CODE
Also, shortcuts to Startup folder (auto-start)?

Currently not possible to have auto-start upon detection.

I'm still trying to get a portable app's menu launcher to auto-start in PE. I can get the shortcut in the Start menu easy enough using Galapo's shortcut cmd
CODE
start "Launcher" "%~DP0\Start.exe"
EXIT

[LODR]
Shortcut_number=1
Shortcut1=Launcher
Shortcut_Parameters1=
Icon1=Start.exe

This gets the port apps/launcher package detected and places a working scut in Startmenu which works fine for manually starting the launcher. I can get the (working) scut in Startmenu\Startup but not before this error which prevents detection and auto-starting of the app.
Attached Image

as soon as I OK this message, the working 'Launcher' scut is placed in Startup but too late to be detected and auto-started. Just to be clear, the 'LODR-Loader' scuts are neither here nor there; I don't need those scuts in Startup but I know of no other way to get my 'Launcher' scut put there.

My understanding of how this shortcut is being created by LODR-loader.exe is limited, some explanation of this might help me to find other 'workarounds'. Also, what does Shortcut_Parameters1= do? Any chance this could be used to flag the scut for auto-start? sporty13.gif

I'm happy to experiment if anyone has ideas, thanks smile.gif


--------------------
"The true measure of a man is how he treats someone who can do him absolutely no good." — Samuel Johnson

"Whether you think that you can, or that you can't, you are usually right." — Henry Ford

LiveXP w/BootSDI Tutorial - My Scripts - My Builds - Portable-ppAX
+Quote Post
post Mar 20 2009, 09:00 PM
Post #490
Galapo
Platinum Member   ******
Group: .script developer

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


Australia


Sourcecode is here if you want to add the option to autostart an app upon detection: http://galapo.boot-land.net/LODR/LODR-loader.au3. I suggest adding another possible entry to [LODR]: Autostart=True; Autostart=False.

Or I can add the feature if you give me a little bit of time.

Shortcut_Parameters are needed in case app requires commandline arguements to be supplied.

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

53 Pages V  « < 47 48 49 50 51 > » 
Reply to this topic
1 User(s) are reading this topic ()





Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts Offtopic posts
How to handle?
5 psc 302 2nd November 2009 - 08:04 PM
Last post by: jaclaz
No New Posts andLinux
3 Mikorist 1,394 22nd December 2008 - 09:06 AM
Last post by: jaclaz
No New Posts andLinux, a working colinux
Somethings that was really needed
7 jaclaz 3,991 6th October 2008 - 01:52 PM
Last post by: bobsobol
No New Posts Office Integrator
Directly integrate Updates and other things to your Office inst disks.
0 Siginet 1,218 10th September 2008 - 12:05 AM
Last post by: Siginet
No New Posts and the oscar goes to Spain!
6 billonious 2,424 9th July 2008 - 09:59 PM
Last post by: Nuno Brito


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