Digg this topic Add to my del.icio.us Submit to SlashDot  
Reply to this topicStart new topic
> driver setting in registry vs command line switch, help request
bilou_gateux
post Sep 29 2007, 05:22 PM
Post #1


Advanced Member
***

Group: Advanced user
Posts: 43
Joined: 1-August 06
Member No.: 97


France


QUOTE(Olof Lagerkvist @ May 11 2007, 06:38 PM) *
All driver settings are in a very "techincal" format in the registry, basically based on the data structure the user mode applications send to the driver when a new virtual disk is created. You can create a registry key HKLM\SYSTEM\CurrentControlSet\Services\ImDisk\Parameters.

I'm a little lost on this one, can someone help me out.

Basically, i want to automount at boot an image containing Lotus Notes 7.0.2 - NOMAD.

The command line used in batch script:
CODE
:Mount
if not exist "%ProgramFiles%\Lotus" md "%ProgramFiles%\Lotus"
  imdisk -a -t vm -f %~dp0Nomad.img -m "%ProgramFiles%\Lotus"
:AutoStart
::# "%ProgramFiles%\Lotus\notes\notes.exe" "=%ProgramFiles%\Lotus\notes\notes.ini"


ImDisk is already installed.
Should i set /v "Start" /t REG_DWORD /d "0" for both ImDisk and ImDskSvc? Current data value is "3"
What are the correct registry settings?
Go to the top of the page
 
+Quote Post
Olof Lagerkvist
post Sep 30 2007, 09:43 AM
Post #2


Advanced Member
***

Group: Developer
Posts: 100
Joined: 27-April 07
From: Bors, Sweden
Member No.: 6,234


Sweden


QUOTE(bilou_gateux @ Sep 29 2007, 07:22 PM) *
Basically, i want to automount at boot an image containing Lotus Notes 7.0.2 - NOMAD.

First, the registry settings equivalent to you command line, in the form of a .reg file:
CODE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ImDisk\Parameters]
"Flags0"=dword:00000200
"FileName0"="\\??\\C:\\Directory\\Images\\Nomad.img"
"LoadDevices"=dword:00000001

Change the FileName0 setting to the correct path to the image file.

Then, set the imdisk driver to autostart. That can be done with the reg command but I prefer the sc command for changing service control settings for drivers and services. In this case:
CODE
sc config imdisk start= auto

This will give you a RAM-disk automatically when Windows starts, with the image file loaded to it. Then you will need to fix the junction point so that the directory "%ProgramFiles%\Lotus" actually redirects to the ImDisk drive. You can use my junc.exe tool for that and this command line syntax:
CODE
junc "%ProgramFiles%\Lotus" \Device\ImDisk0\


This should make it.
Go to the top of the page
 
+Quote Post
jaclaz
post Sep 30 2007, 10:12 AM
Post #3


Finder
***

Group: Advanced user
Posts: 1,117
Joined: 14-July 06
Member No.: 2


Italy


If I may:
QUOTE(Olof Lagerkvist)
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ImDisk\Parameters]

is not always the "right" ControlSet.

One should either use "CurrentControlSet" or inspect via the batch the
HKEY_LOCAL_MACHINE\SYSTEM\Select
key and act accordingly.
As an example the 2K machine I am writing from has this contents:
QUOTE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\Select]
"Current"=dword:00000002
"Default"=dword:00000002
"Failed"=dword:00000001
"LastKnownGood"=dword:00000003


(due to a corrupted controlset)

jaclaz
Go to the top of the page
 
+Quote Post
Olof Lagerkvist
post Sep 30 2007, 10:15 AM
Post #4


Advanced Member
***

Group: Developer
Posts: 100
Joined: 27-April 07
From: Bors, Sweden
Member No.: 6,234


Sweden


QUOTE(jaclaz @ Sep 30 2007, 12:12 PM) *
If I may:

is not always the "right" ControlSet.

One should either use "CurrentControlSet" or inspect via the batch the
HKEY_LOCAL_MACHINE\SYSTEM\Select
key and act accordingly.

Absolutely. I just did a copy-and-paste and did not really check that part. I have corrected my post to "CurrentControlSet" now.
Go to the top of the page
 
+Quote Post
bilou_gateux
post Sep 30 2007, 03:23 PM
Post #5


Advanced Member
***

Group: Advanced user
Posts: 43
Joined: 1-August 06
Member No.: 97


France


QUOTE(jaclaz @ Sep 30 2007, 12:12 PM) *
If I may:

is not always the "right" ControlSet.

One should either use "CurrentControlSet" or inspect via the batch the
HKEY_LOCAL_MACHINE\SYSTEM\Select
key and act accordingly.
As an example the 2K machine I am writing from has this contents:
(due to a corrupted controlset)

jaclaz

Offline registry editing here, that's why i have selected ControlSet001 which is Default in my case.

@Olof,
I agree with you. Change status of a service with the right tool is even better.
Go to the top of the page
 
+Quote Post
ktp
post Oct 5 2007, 09:30 AM
Post #6


Advanced Member
***

Group: Members
Posts: 121
Joined: 16-February 07
Member No.: 3,365



I always found adding reg/inf to BartPE/UBCD4Win a little "technical". For ImDisk I believe a plugin
(inf/xml) was posted by someone. But I found it is easier (at least for me) to just after BartPE boot,
to click on ImDiskinst.exe, then in the Control Panel I find the usual umbrella applet :-).
Of course it is not permanent, but sufficient for me. ImDisk looks like then as portable application for me,
which I like a lot. A vast majority of portable applications run under BartPE, so it is really nice
(no install, no explicit registry tweaking).

For adding portable applications, I do not create a plugin for each of them, just use Total Commander to the
right application directory and start them. For a little housekeeping, you can also use pstart which is much
user-friendly than nu2menu, with dynamic menu creation, very useful for USB key (writable).
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

Collapse

> Similar Topics

  Topic Replies Topic Starter Views Last Action
No New Posts Command Line Shutdown/Reboot
Need to shutdown/reboot LiveXP from Script
7 robinj 95 Yesterday, 03:11 PM
Last post by: robinj
No New Posts Install issues
Are grldrs in grub4Dos & distros the same?
1 B Gold 49 Yesterday, 11:54 AM
Last post by: jaclaz
No New Posts Topic has attachmentsInternational FORMAT "Y"
(looking from info from people with NON-English 2K/XP)
13 jaclaz 241 9th October 2007 - 09:21 AM
Last post by: jaclaz
No New Posts Intrusion Detection Tools
protecting your machine from intruders
2 Nuno Brito 179 29th September 2007 - 11:37 AM
Last post by: Nuno Brito
No new Topic has attachmentsDriver Installer For VistaPE
64 ctv99 10,775 22nd September 2007 - 04:47 PM
Last post by: xtraildci


 

- Lo-Fi Version Time is now: 12th October 2007 - 04:53 AM

MKPortal ©2003-2006 mkportal.it