/build/static/layout/Breadcrumb_cap_w.png

Silent Installation: ELMO Image Mate 2.08

Hi,

We can install the software silently with the following procedure:
IM_2.08_Setup.exe /S /v"/qn /norestart"

Problem 1: The drivers are not coming from a trusted source.
Solution 1: We are using certutil.exe to add the predefined .cer file to the "TrustedPublisher" group.

Problem 2: The silent installation gets stuck as there is suddenly given a window for the user.
This window is part of the "interactive service", which tells us that there is a program which tries
to show a message for the OS. As we click to "show the message" the message is the standard
"Welcome to the new hardware wizard". We can just click "next next next" and it will now find and
install the drivers OK.

Is there a way to solve the Problem 2?

Thank you in advance.

ps. The OS where the package should install is Windows 7 x64

0 Comments   [ + ] Show comments

Answers (13)

Posted by: pjgeutjens 12 years ago
Red Belt
3
For disabling an action you'd have to look in the InstallExecuteSequence table. When you identify the offending CA just give it an impossible-to-meet condition like 1=2.
As for what's triggering the "Add new Hardware" wizard, it could be a rundll commandline triggering the appropriate CPL, or the fact there's still something wrong with the driver signing.

Kr,

PJ
Posted by: andemats 12 years ago
2nd Degree Black Belt
1
What if you preinstall the drivers?
Does it still come up with the New hardware wizard?
Posted by: MiBrown 11 years ago
White Belt
0

I could deactivate the CustomAction InstDrv in the InstallExecuteSequence Table. It is at position 6605 and doing so prevented the hardware wizard from showing.

Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
Hm, good point.

I will try tomorrow pre-installing the drivers if I can get them off the original package and in which format they are.
Im not a wizard of repackaging drivers hence I have always relied on switches / .ini modifications upon silent driver installations.

Thank you for the tip.
Posted by: pjgeutjens 12 years ago
Red Belt
0
IM_2.08_Setup.exe /S /v"/qn /norestart"

The structure of the commandline arguments (the /v part) shows me the underlying installer is already an MSI.
You should be able to grab that during the install and start from it as a basis. You will have better control of the driver installation actions this way. Have a look in the %TEMP% and %APPDATA% folders of the installing user while the setup is running.

PJ
Posted by: andemats 12 years ago
2nd Degree Black Belt
0
Yes, Pieter have a good point.
Would probably work even better with the MSI and drivers installed separate (if the drivers are installed outside of the MSI), than installing the drivers and then the setup.
Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
OK,

I cant seem to get this one working.

I can extract all the details out from the MSI using the administrative installation.

I can see that the DPinst64.exe is called at some point cause it pops up the wizdard in context.

However, i cant seem to be able to remove the call to this file from the MSI, i dont know really where to look.
The CustomAction table does not seem to have anything related to calling the DPInst64.exe after successful installation.
How can i prevent DPInst64.exe from being called when the MSI istallation is finished/successful? Where and what should i look?
Posted by: pjgeutjens 12 years ago
Red Belt
0
As a test, you could try temporarily renaming the DPInst64.exe that the installer is calling, then running the MSI with extended logging (/LV*) and seeing which action fails.
Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
Tried that one:

1) Renamed DPInst64.exe to DPInst64xxx.exe (from administrative installation extraction)
2) Launched the MSI (from administrative installation extraction)
3) At beginning of installation: "Error 1308 Source File Not Found" [Cancel][Retry][Bypass]
4) Chosed Bypass so the installation would continue
5) The installation continued without futher errors
6) Log shows that the installation ended without errors! (Return value 0)
x) The only other error is the error 1308 during a:

Executing op: ActionStart(Name=InstallFiles...
Error 1308.Source file not found: Verify that the file exists and that you can access it.

Where does this leave us?
The installer isnt actually calling this file, but something else that launches it? Should that still give us more errors?
Posted by: pjgeutjens 12 years ago
Red Belt
0
Have a look if the DifxAPP merge module is part of the installer perhaps...
Or have a look at the DPInst log file at %SystemRoot%\DPINST.LOG
Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
No trace of DifxAPP.

Good to know the log file location of DPInst.
But opening that log shows that the DPInst did not run during my last installation, when I renamed the EXE.
So renaming DPInst64.exe will cause MSI to popup an Source not found error, but continues successfully on all other parts but the driver part.

So somehow the MSI is launching the DPInst64.exe or something related to this EXE which causes the original "New Hardware Wizard" popup.
I know know how to do all this silently, i would just need to get rid of the popup from the original installer.

Which table should I be examining/altering to drop one action from the installation?
Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
Thank you for your help today.
Ill definately have a look at the table you mentioned tomorrow.
Posted by: SystemJay 12 years ago
Senior Yellow Belt
0
ORIGINAL: pjgeutjens

For disabling an action you'd have to look in the InstallExecuteSequence table. When you identify the offending CA just give it an impossible-to-meet condition like 1=2.



Ok, thats it!

Thank you very much for helping me through this. I couldnt address this problem yesterday, but as I picked it up today
that was the first thing i looked for. There was an installExecuteSequence by the name of "InstallDrv", which i gave an
impossible condition. Result = no hardware wizard pop up.

Now I can install the Software silentely as a stand-alone and the drivers silently as a stand-alone installtion.

Could not have done it without you :)
Cheers and have a great weekend (soon).

Comments:
  • Hi SystemJay,
    could you explain how you did it? we're facing the same problem trying to install the applications and drivers silently.. we have both .exe and .msi ..
    we would really appreciate any help.
    thanks, - angel6677 12 years ago
  • I'm in the same boat as angel. We can distribute the program without any issues, but I'm not sure where to start with packaging the drivers. Any help would be appreciated. - jmorriso 11 years ago
  • I could deactivate the CustomAction InstDrv in the InstallExecuteSequence Table. It is at position 6605 and doing so prevented the hardware wizard from showing. - MiBrown 11 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ