REQ Virtual CloneDrive 5111 silent method
#2
Posted 03 May 2005 - 12:50 AM
Look out for the unsigned driver window + the reboot dialog, that will popup.
#3
Posted 03 May 2005 - 12:58 AM
I got as far as the /s then i get blocked by the Unsigned Driver.
#4
Posted 03 May 2005 - 02:22 AM
Astalavista, on May 3 2005, 04:58 PM, said:
I got as far as the /s then i get blocked by the Unsigned Driver.
I suspect that may not be a problem with your winnt.sif entry for unsigned drivers?
Though, this Au3 script will check for it. It will close the reboot dialog as well.
Sort the code with the comments showing arrows.
Attached File(s)
-
_SetupVirtualCloneDrive5.au3 (3.63K)
Number of downloads: 159
#5
Posted 04 May 2005 - 12:12 AM
is it a service that we can turn of via registry tweaks?
#6
Posted 01 June 2005 - 10:35 AM
Here bellow i made mine which check for unsigned drivers and close the reboot dialog. Tested working
Enjoy
coucou
#7
Posted 09 March 2008 - 01:21 PM
comand to disable unsigned driver....
start /wait virtualclonedrive....
command to enable unsigned driver...
#8
Posted 10 September 2008 - 04:46 PM
Long winded approach though.
First you need to start the install manually and when it stops at the untrusted driver stage look in the TEMP folder and find the sub folder that contains the extracted Clone Drive Files. Take a copy of the vclone.cat file in this folder.
Cancel the installation. This may still say this has installed but the driver will not work. Just got to Add/Remove programs and remove it.
Using the vclone.cat file from the files you copied right click and select properties.
Select Digital Signatures
Select Elaborate Bytes AG in the Signature list box.
Click Details
On the Digital Signature Details window select the General Tab
Click View Certificate
On the Certificate window select the Details Tab
Click Copy to File
On the Certificate Export Wizard window click Next
I chose the Cryptographic Message Syntax Standard - PKCS #7 Certificates (.P7B) radio button and then ticked the Include all Certificates in the certification path if possible.
Click Next
Save the file to where you want to keep it.
Click Next
Click Finish
Click Ok
Close all the open windows.
Now to pre import the certificate into the certificate store so that the software will install silently I used the following command line with administrative priviledges.
certutil -addstore "TrustedPublisher" vclone.p7b
This import the certificate that we exported before and now run
setupvirtualclone.exe /S
to install silently.
So with a little prepartion it should be possible to completely silently install Virtual Clone Drive
With these two commands.
certutil -addstore "TrustedPublisher" vclone.p7b
setupvirtualclone.exe /S
#9
Posted 02 August 2009 - 04:49 AM
I've tried the certificate import method on XP, to no avail.
I've adapted some code, credit to the following:
Quote
/* This program turns the Driver signing Policy On/Off for Windows XP * Written by Stefan `Sec` Zehl <sec@xxxxxx>, 15.11.2004 * * Thanks to sysinternals.com for regmon and apispy * to msdn.microsoft.com for windows reference * to cygwin for their environment */
See also, at http://www.911cd.net...showtopic=19316
and have come up with the attached exe file. Fixed some basic logic bugs. Works on my XP like this:
@echo off SigVerifOnOff.exe off start /wait SetupVirtualCloneDrive5432.exe /S SigVerifOnOff.exe on del "C:\Documents and Settings\All Users\Desktop\Virtual CloneDrive.lnk" cscript /nologo fixLetter.vbs
I also ripped most of this code form somewhere to ensure a drive letter. Note that each instance of VCD will be changing instance numbers, so some more smarts needs to be built into it:
On Error Resume Next
'Device IDs
DeviceID1 = "SCSI\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\1&2AFD7D61&0&000"
DeviceID2 = "SCSI\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\1&2AFD7D61&1&000"
DeviceID3 = "SCSI\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\1&2AFD7D61&2&000"
DeviceID4 = "SCSI\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\1&2AFD7D61&3&000"
DeviceID5 = "SCSI\CDROM&VEN_ELBY&PROD_CLONEDRIVE&REV_1.4\1&2AFD7D61&4&000"
strComputer = "."
Dim nRtn, WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_CDROMDrive")
Dim driveFound
driveFound = False
For Each objItem in colItems
'WScript.Echo objItem.DeviceID & "=" & objItemDrive
If driveFound Then Exit For
Select Case (objItem.DeviceID)
Case DeviceID1
x = ChgDrv ("I:", objItem.Drive)
driveFound = True
Case DeviceID_2
x = ChgDrv ("I:", objItem.Drive)
driveFound = True
Case DeviceID3
x = ChgDrv ("I:", objItem.Drive)
driveFound = True
Case DeviceID4
x = ChgDrv ("I:", objItem.Drive)
driveFound = True
Case DeviceID5
x = ChgDrv ("I:", objItem.Drive)
driveFound = True
End Select
Next
Function ChgDrv(Drive, theDrive)
If theDrive <> Drive Then
wscript.echo theDrive & " => " & Drive
'Create File
strFilename = "chgdrv" & Left(Drive,1) & ".txt"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile(strFilename)
objFile.Close
'Write Data to File
Set objFile = objFSO.OpenTextFile (strFilename, 2)
objFile.WriteLine "select volume " & theDrive
objFile.WriteLine "assign letter=" & Drive
objFile.WriteLine "exit"
objFile.Close
'Run Diskpart calling the script just created
strRun = "diskpart /s " & strFilename
nRtn = wshShell.Run(strRun, 2 , True)
'Delete File
objFSO.DeleteFile(strFilename)
Else
WScript.Echo "Drive is already " & Drive
End If
End Function
Let's see if this .exe posts...
Attached File(s)
-
SigVerifOnOff.exe (10K)
Number of downloads: 58
#10
Posted 02 August 2009 - 04:55 AM
Doesn't need / use any funny header / resource file (stdafx, etc).
As a person who doesn't understand C++
Just remove them after creating a new project, paste this source code in, and try to compile.
I hope MS doesn't change the algo.
This post has been edited by rodyefew: 02 August 2009 - 04:56 AM
#11
Posted 08 August 2009 - 08:15 AM
I'm attaching a version that should be statically linked (slightly larger).
Please let me know how you go!
Attached File(s)
-
SigVerifOnOff.exe (54K)
Number of downloads: 118
This post has been edited by rodyefew: 08 August 2009 - 08:16 AM
#12
Posted 12 March 2010 - 01:39 PM
rodyefew, on 08 August 2009 - 08:15 AM, said:
I'm attaching a version that should be statically linked (slightly larger).
Please let me know how you go!
I know this is an older post, but do you have updated source that you could post or link to? Thanks for the tool. I've been looking for a way to automate the installation of VirtualCloneDrive for a while now.
#13
Posted 13 March 2010 - 06:23 AM
deoren, on 12 March 2010 - 01:39 PM, said:
I've only tested this on XP 32-bit. I dare-say that there may be UAC issues and other untolds with any combination of Win V/7/64. Will be interested in hearing feedback. Here's the somewhat modified code. Full credits where due.
#include <windows.h>
#include <wincrypt.h>
#include <stdio.h>
#define HP_HASHVALUE HP_HASHVAL
/* This program turns the Driver signing Policy On/Off for Windows XP
* Written by Stefan `Sec` Zehl <sec@xxxxxx>, 15.11.2004
*
* Thanks to sysinternals.com for regmon and apispy
* to msdn.microsoft.com for windows reference
* to cygwin for their environment
*/
void MyHandleError(char *s){
printf("Error: %s, number %x\n.",s,(unsigned int)GetLastError());
exit(1);
}
//--------------------------------------------------------------------
int main(int argc, char* argv[])
{
if ((argc < 2) || (argc > 2))
{
printf( "usage: %s [on|off]", argv[0] );
exit(1);
}
//printf("argc = %x\n",argc);
//for(int i = 0; i < argc; i++)
// printf("argv[%x] = %s\n",i,argv[i]);
//return 0;
BYTE ignoreOn;
if (strcmp(argv[1], "on"))
{
ignoreOn=0;
}
else if (strcmp(argv[1], "off"))
{
ignoreOn=1;
}
else
{
printf( "usage: %s [on|off]", argv[0] );
exit(1);
}
printf("yay=%x",ignoreOn);
//exit(1);
HCRYPTPROV hCryptProv;
HCRYPTHASH hHash;
BYTE data[16];
DWORD len;
DWORD seed;
HKEY hkey;
// BYTE ignoreOn=0; // This is the On/Off toggle
char input[4];
int x;
// HKLM\System\WPA\PnP\seed
if(RegOpenKeyEx(
HKEY_LOCAL_MACHINE,
L"System\\WPA\\PnP",
0,
KEY_READ,
&hkey
)==ERROR_SUCCESS){
printf("RegOpenKey sucess\n");
}else{
printf("RegOpenKey failure\n");
};
len=sizeof(seed);
if(RegQueryValueEx(
hkey,
L"seed",
NULL,
NULL,
(BYTE*)&seed,
&len
)==ERROR_SUCCESS){
printf("RegQueryValue sucess\n");
}else{
printf("RegQueryValue failure\n");
};
if(hkey)
RegCloseKey(hkey);
printf("Seed=%x\n",(unsigned int)seed);
if(CryptAcquireContext(
&hCryptProv,
NULL,
NULL,
PROV_RSA_FULL,
0)) // flag values
{
printf("A cryptographic context has been acquired.\n\n");
}
else
{
if (GetLastError() == NTE_BAD_KEYSET)
{
if(CryptAcquireContext(
&hCryptProv,
NULL,
NULL,
PROV_RSA_FULL,
CRYPT_NEWKEYSET))
{
printf("A new key container has been created.\n");
}
else
{
printf("Could not create a new key container.\n");
exit(1);
}
}
else
{
printf("A cryptographic service handle could not be "
"acquired.\n");
exit(1);
}
} // End of else.
//--------------------------------------------------------------------
// Create a hash object.
if(CryptCreateHash(
hCryptProv,
CALG_MD5,
0,
0,
&hHash))
{
printf("An empty hash object has been created. \n");
} else {
MyHandleError("Error during CryptBeginHash!\n");
}
//--------------------------------------------------------------------
// Compute the cryptographic hash on the data.
input[0]=0;
input[1]=ignoreOn; // This is the Value!
input[2]=0;
input[3]=0;
if(CryptHashData(
hHash,
(BYTE*)input,
sizeof(input),
0))
{
printf("The data has been hashed. \n");
} else {
MyHandleError("Error during CPHashData!\n");
}
//--------------------------------------------------------------------
if(CryptHashData(
hHash,
(BYTE*)&seed,
sizeof(seed),
0))
{
printf("The data has been hashed. \n");
} else {
MyHandleError("Error during CPHashData!\n");
}
//--------------------------------------------------------------------
len=sizeof(data);
if( CryptGetHashParam(
hHash,
HP_HASHVALUE,
data,
&len,
0))
{
printf("The hash has been retrieved. \n");
} else {
MyHandleError("Error during CPGetHashParam!\n");
}
//--------------------------------------------------------------------
// Clean up.
// Destroy the hash object.
if(hHash) {
if(!(CryptDestroyHash(hHash)))
MyHandleError("Error during CryptDestroyHash");
}
// Release the CSP.
if(hCryptProv) {
if(!(CryptReleaseContext(hCryptProv,0)))
MyHandleError("Error during CryptReleaseContext");
}
printf("Hash: ");
for(x=0;x<sizeof(data);x++){
printf("%x ",data[x]);
};
printf("\nCreate md5 hash completed without error. \n");
//--------------------------------------------------------------------
// HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\PrivateHash
if(RegOpenKeyEx(
HKEY_LOCAL_MACHINE,
L"Software\\Microsoft\\Windows\\CurrentVersion\\Setup",
0,
KEY_WRITE,
&hkey
)==ERROR_SUCCESS){
printf("RegOpenKey sucess\n");
}else{
printf("RegOpenKey failure\n");
};
len=sizeof(seed);
if(RegSetValueEx(
hkey,
L"PrivateHash",
0,
REG_BINARY,
data,
sizeof(data)
)==ERROR_SUCCESS){
printf("RegSetValueEx sucess\n");
}else{
printf("RegSetValueEx failure\n");
};
if(hkey)
RegCloseKey(hkey);
//--------------------------------------------------------------------
// HKLM\Software\Microsoft\Driver Signing\Policy
if(RegOpenKeyEx(
HKEY_CURRENT_USER,
L"Software\\Microsoft\\Driver Signing",
0,
KEY_WRITE,
&hkey
)==ERROR_SUCCESS){
printf("RegOpenKey sucess\n");
}else{
printf("RegOpenKey failure\n");
};
len=sizeof(seed);
if(RegSetValueEx(
hkey,
L"Policy",
0,
REG_BINARY,
&ignoreOn,
1
)==ERROR_SUCCESS){
printf("RegSetValueEx sucess\n");
}else{
printf("RegSetValueEx failure\n");
};
if(hkey)
RegCloseKey(hkey);
//--------------------------------------------------------------------
// HKLM\Software\Microsoft\Driver Signing\Policy
if(RegOpenKeyEx(
HKEY_LOCAL_MACHINE,
L"Software\\Microsoft\\Driver Signing",
0,
KEY_WRITE,
&hkey
)==ERROR_SUCCESS){
printf("RegOpenKey sucess\n");
}else{
printf("RegOpenKey failure\n");
};
len=sizeof(seed);
if(RegSetValueEx(
hkey,
L"Policy",
0,
REG_BINARY,
&ignoreOn,
1
)==ERROR_SUCCESS){
printf("RegSetValueEx sucess\n");
}else{
printf("RegSetValueEx failure\n");
};
if(hkey)
RegCloseKey(hkey);
exit(0);
}
#14
Posted 13 March 2010 - 08:08 AM
Cheers and Regards
#15
Posted 14 March 2010 - 05:53 AM
bphlpt, on 13 March 2010 - 08:08 AM, said:
Cheers and Regards
Ah - there's two versions linked a few posts back in this thread (just tried to download and it worked).
One version requires VC2008 runtime and the other (larger) one doesn't.
#16
Posted 14 March 2010 - 09:07 AM
Cheers and Regards
This post has been edited by bphlpt: 14 March 2010 - 09:07 AM
#17
Posted 14 March 2010 - 10:19 AM
bphlpt, on 14 March 2010 - 09:07 AM, said:
Cheers and Regards
Hi,
This is the (somewhat) modified code (above).
The original is here: http://www.911cd.net...showtopic=19316
I couldn't get the original code to compile for some reason. Probably just a bad copy / paste job.
Regards,
rodyefew
#18
Posted 13 November 2010 - 12:08 AM
- Copy attached certmgr.exe (*) to a temporary directory, e.g. c:\TEMP
- Right-click SetupVirtualCloneDrive5440.exe --> Properties --> Digital Signatures
- Open Details --> Show certificate
- Go to details tab and copy the certificate to a temporary directory, e.g. c:\TEMP\ElaborateBytesAG.cer
- Open a command prompt and enter the following command:
Quote
- Install Virtual CloneDrive with the following command
Quote
Et voilą
Regards,
ThinkPsy
(*) The certificate manager is a tool provided by Microsoft. You can get it with Windows Server 2008 Ressource Kit.
Attached File(s)
-
certmgr.exe (73K)
Number of downloads: 67
#20
Posted 01 March 2011 - 10:32 PM
ThinkPsy, on 13 November 2010 - 12:08 AM, said:
- Copy attached certmgr.exe (*) to a temporary directory, e.g. c:\TEMP
- Right-click SetupVirtualCloneDrive5440.exe --> Properties --> Digital Signatures
- Open Details --> Show certificate
- Go to details tab and copy the certificate to a temporary directory, e.g. c:\TEMP\ElaborateBytesAG.cer
- Open a command prompt and enter the following command:
Quote
You can actually use Windows' inbuilt certificate manager in Win7/2K8R2 to alleviate the need for another file if you have these OS: certutil.exe -addstore "TrustedPublisher" [cert_file_name.cer]
Thanks for the process though, very handy!
This post has been edited by jezza333: 01 March 2011 - 10:45 PM



Help


Back to top









