Bilou_Gateux Posted July 21, 2004 Share Posted July 21, 2004 (edited) I have to install 12 HP DeskJet 3650 printers connected to the PC via USB.The installation consists of a Windows Installer hp deskjet 3600.msi build with installshield.The normal installation process is to run the installer (do not connect the hp deskjet 3600 series printer to the computer until prompted to do so), let the setup copies various features :Model:hp deskjet 3600Image Name:SPR1A-4Build Date:11/2/2003CD Burn:11/2/2003Driver Version:09/02/2003,9.4.4.0Driver Release:Driver Release:R236-E-[GOLD]_Driver_CondensedInstaller Revision:SPR_3600.03.11.01.APA:030804_Homeplate_R293PRNSCRN:v.2002.10.11[1.1-GOLD]Languages: ara nld enu fra deu ita ptb esmFeature:AutoRunFeature:CI_DDFeature:CI_HELPFeature:CUEFeature:CueIntegrationFeature:DriverCondensedFeature:MSIOFeature:OverlandFeature:PrinterAssistantFeature:PrintScreenFeature:RDT_PassthruFeature:RDT_PDIFeature:RDT_UninstallFeature:ReadMeFeature:Resource_CheckerFeature:SoftwareUpdateToolFeature:TestPageFeature:WebRegand when asked (the drivers inf, cat and related files previously copied by the installer in the right places) to plug the USB cable, let PnP do his job and install the printer and then installer ask if we want to register online and then finish.Not really nice when we should do 12x the same thing.My whish is to run the installer silently and install the printer without human intervention.I already hear the answer : msieexec -i hp deskjet 3600.msi /qb.No ! because the installer copies non-signed drivers and a windows popup to accept the package.What i would like to do.Rebuild a msi package which only install the needed features = PrinterAssistant.that why i ask mazin, a msi specialist if he can give me some help to rework the msi (4.08Mb) to install only selected feature.I have downloaded the driver part from HP Website and copy them to a new folder and add in my PnP OEM DriversPath in registry.Resume to my process :1/ Drivers are copied in a folder with the path added in registry to Pnp found it automatically.2/ run msi silently to install the features i want and only those one without human interaction.3/ when the new installed computer is run, the user plug the printer, PnP detection find a new peripheral, search in the right folder the driver, the user says YES if a popup windows advertises unsigned driver and voila.Feedback and help welcome to transform this whish to reality.HP DeskJet Basic Feature software/driver - FOR USB CABLEHP DeskJet Full Feature software/driver - FOR USB CABLEModel:hp deskjet 3600Image Name:3600-fulfillmentBuild Date:11/10/2003CD Burn:11/10/2003Driver Version:09/02/2003,9.4.4.0Driver Release:Driver Release:R236-E-[GOLD]_Driver_CondensedInstaller Revision:SPR_3600.03.11.01.APA:030804_Homeplate_R293PRNSCRN:v.2002.10.11[1.1-GOLD]Languages: ara cht chs csy dan nld enu fin fra deu grk heb hun ita kor non plk ptb rus esm svc turFeature:AltLangPDF_CD1Feature:AltLangPDF_CD2Feature:AutoRunFeature:DriverCondensedFeature:HTML_CFG_ALLFeature:MSIOFeature:OverlandFeature:PrinterAssistantFeature:RDT_PassthruFeature:RDT_PDIFeature:RDT_UninstallFeature:ReadMeFeature:SoftwareUpdateToolFeature:TestPageThe downloadable version from this URL doesn't contains some features like WebReg, CUE CueIntegration.Nethertheless, i don't need ReadMe, Software Update Tool, TestPage... Edited July 21, 2004 by Bilou_Gateux Link to comment Share on other sites More sharing options...
mazin Posted July 21, 2004 Share Posted July 21, 2004 Hello, Bilou_Gateux.If I want to summarize your nice and well-organized presentation, then I should say that you want to EDIT the MSI. Am I correct?If you mean to REPACKAGE the MSI, there's no problem. Both solutions are supposed to be easy.But, in case of drivers, I do not recommend repackaging.However, let me talk less and work more! If I'd like to help, which version should I download; Basic or Full?Thanks. Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted July 22, 2004 Author Share Posted July 22, 2004 The basic feature contains only drivers related files (inf, cat, and dlls)Yes, i just would like to repackage the msi (included in the full feature) to silently install only some features.The feature i need to install from the msi is PrinterAssistant.Some features i want to NOT install at all are ReadMe, Software Update Tool, TestPage.And not to copy the DriverCondensed feature which should contains the drivers and ask to plug the printer to USB during the install.The main idea is to copy all the drivers file in $OEM$\$1\PnPDrvrs\HPDJ36xx folder and to add a line to my winnt.sif in [unattended] OEMPnPDriversPath = "\PnPDrvrs\HPDJ36xx". this part i do myself using unattended windows installRun the msi installer in the [GuiRunOnce] section.When the installation is finished, i sysprep the computer, create a ghost image and restore the ghost image to 12 PCs.The first time the new user starts the PC, connect the usb cable with printer attached and just let the PnP detection find the printer and add it to available printers in windows.As i'm not at office until next monday (July 26 2004), i cannot check one of the running box with the full feature installed to examine what are other features and if they are really necessary.I hope to find more detailled information about those features next monday and give you more infos.May be by editing the MSI file could you find more details about each feature (name of the exe and dll copied).Thanks by advance to show me the way and sorry if my explanations are not very easy to understand due to my not so good english. Link to comment Share on other sites More sharing options...
mazin Posted July 22, 2004 Share Posted July 22, 2004 The Full version is 27.732 MB!It should take long from my home-phone-line based modem to download.I suggest you zip the MSI (4.08 MB) and send it to me by email. It should be shrunk upon zipping to less than its original size. Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted July 23, 2004 Author Share Posted July 23, 2004 I am sorry not to have mentioned the size of the download.In france, ADSL prices are the lowest in Europe and many websurfers have an ADSL connection to the internet. Of course, i will download the package and send to you only the zipped msi file. Link to comment Share on other sites More sharing options...
mazin Posted July 23, 2004 Share Posted July 23, 2004 I am sorry not to have mentioned the size of the download.In france, ADSL prices are the lowest in Europe and many websurfers have an ADSL connection to the internet. Of course, i will download the package and send to you only the zipped msi file.I'll be waiting.Thanks. Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted July 23, 2004 Author Share Posted July 23, 2004 (edited) 7zip is really a nice tool to create small archives with the ultra compression level.4 Mb msi file reduced to less than 1 Mb 7z archive. Can be send as attached with a basic hotmail account with the 1 Mb attach size limit.Just starting to play with HOWTO: Use the Orca Database Editor to Edit Windows Installer Files i have noticed an Admin install mode.Seems to be possible to create a customized install by first running setup.exe /A but my first attempt was unsuccessful Another switch is setup.exe /L language /S /v/qn launch the installation silently but windows popup with the wizard to connect the printer to USB.I believe need first to create a custom install with PnP detection and printer install disabled and then use the switch mentionned to install silently. Edited July 23, 2004 by Bilou_Gateux Link to comment Share on other sites More sharing options...
mazin Posted July 23, 2004 Share Posted July 23, 2004 These are the features included in the MSI along with their default installation state:--- Feature --------------------------- Will be -----01- Alternate Language Arabic PDF (CD1) Installed02- Alternate Language Hebrew PDF (CD2) Installed03- Autorun --------------------------- Not Installed04- Driver (Condensed) ---------------- Installed05- HTML_CFG_ALL (HTML.cfg) ----------- Installed06- Microsoft IO (MSIO) --------------- Installed07- Overland -------------------------- Installed08- Printer Assistant ----------------- Installed09- RDT_Passthru (hpbvspst.exe) ------- Not Installed10- RDT_PDI (hpfpdi08.exe) ------------ Installed11- RDT_Uninstall (Root Uninstaller) -- Not Installed12- ReadMe ---------------------------- Installed13- Software Update Tool (SWUT) ------- Installed14- TestPage -------------------------- InstalledWe have three options in how to adapt this MSI to our situation:1- Delete unwanted features from the MSI.This allows us to delete a feature's required files from the package.Also, deleting a feature deletes its related registry keys and related shortcuts.You can use WinINSTALL LE.2- Disable installing unwanted features (Not Installed).Disabling a feature disables its related registry keys and related shortcuts.The package remains as it is.You can use WinINSTALL LE.3- Adding a condition to each feature.This allows us to exclude features via command line at installation time.Excluding a feature disables its related registry keys and related shortcuts.The package remains as it is.You can't use WinINSTALL LE.Either option takes some minutes. First option takes hours to accomplish if you are going to delete related files._______________________________________________________- Which option you think is better for you?- Would you please post a pic for that annoying message (screen)?- Also, currently, what app do you use for dealing with MSIs? Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted July 24, 2004 Author Share Posted July 24, 2004 - Which option you think is better for you?3- Adding a condition to each feature.I just want to uncheck the Software Update Tool (SWUT) feature because it adds : [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]"HP Software Update"=""C:\\Program Files\\Hewlett-Packard\\HP Software Update\\HPWuSchd.exe""[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]"SWUPath"="C:\\Program Files\\Hewlett-Packard\\HP Software Update\\shellExWin.exe -m"Try to open a connection to internet each time the computer is powered.I agree with people who suggest just to remove the value from the registry with a REG DEL after the installation.- Would you please post a pic for that annoying message (screen)?HP Deskjet 3500, 3600, 3700, 3840, 5100, 5600, and 5800 Series Printers - Installation Stops When Looking for New HardwareThat's this one that make the install not running silently although using the command setup.exe /L 1036 /S /v/qn because install wait the USB cable to be plugged to let Windows find the printer and the installation complete.- Also, currently, what app do you use for dealing with MSIs?Orca comes with the Platform SDK, but must be installed separately. After you installed the SDK, you'll find a file Orca.msi in directory <ProgramFilesFolder>\Microsoft Platform SDK\Bin\.In fact i just use ORCA to view the content of the MSI database, never tried to edit some entries... for the hp deskjet 3600.msi, i haven't found from where the process i don't want to happens "Add New Hardware Wizard" is launched. Link to comment Share on other sites More sharing options...
mazin Posted July 24, 2004 Share Posted July 24, 2004 3- Adding a condition to each feature.That's easy. I'll modify the MSI and send it to you for testing. It should work, though.I'll send it by email when I finish. Link to comment Share on other sites More sharing options...
mazin Posted July 24, 2004 Share Posted July 24, 2004 Use the modified MSI (sent to you) with these switches:--- Feature --------------------------- Switch to exclude01- Alternate Language Arabic PDF (CD1) A=002- Alternate Language Hebrew PDF (CD2) H=004- Driver (Condensed) ---------------- D=005- HTML_CFG_ALL (HTML.cfg) ----------- C=006- Microsoft IO (MSIO) --------------- M=007- Overland -------------------------- O=008- Printer Assistant ----------------- P=010- RDT_PDI (hpfpdi08.exe) ------------ I=012- ReadMe ---------------------------- R=013- Software Update Tool (SWUT) ------- S=014- TestPage -------------------------- T=0The other 3 features are excluded by default.Command line example:-----------------------------Start /wait %systemdrive%\Install\HP\HP3600.msi A=0 H=0 D=0 R=0 S=0 T=0 /qnI'll be waiting for your test results. Link to comment Share on other sites More sharing options...
mazin Posted July 24, 2004 Share Posted July 24, 2004 Software Update Toolinstall wait the USB cable to be plugged to let Windows find the printer and the installation completeHowever, if those are the only problems you want to get rid of, you can try this solution using the original MSI:Start /wait %sys...\HP3600.msi CI_DO_PNP=False CI_INSTALL_DETECTED_PRINTER=No /qnREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "HP Software Update" /fREG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v SWUPath /fCI_DO_PNP & CI_INSTALL_DETECTED_PRINTER are properties already found in the Properties Table of the MSI.I think they can be exploited on the command line. You can give it a try. If they are usable, then you don't need the modified MSI. Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted July 27, 2004 Author Share Posted July 27, 2004 thanks for the modified msi.I will try both solutions and reports the results. Link to comment Share on other sites More sharing options...
cyberdiamond Posted August 3, 2004 Share Posted August 3, 2004 Any news? Link to comment Share on other sites More sharing options...
mazin Posted August 3, 2004 Share Posted August 3, 2004 Any news?Are you interested in the same printer? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now