We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi gigi,

Ok here is what is happening. I have a printer setup so when you select it it installs the printer drivers. It asks to continue or quit with the warning during installation which proves it is installing the driver files correctly.

But the thing is the printer I am trying to install is using the Parallel port and not USB. So when you plug the printer in it does not search for the printer since it is not plug in play.

How can I make it so it automatically adds the printer to the printer list? So then when they plug the printer in it works? Or have it make the printer recognized if the printer is already connected during installation?

Is there a way to do this, I don't want the person to have to manually add the printer after installation.

Thanks,

Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Riley,

How you install the printer driver? Using the "Drivers" feature from Advanced Installer?

If so note that it is not recommended using DIFx for MSI installers to install drivers for first installed hardware. You should use DPInst instead.

For more details please see:
http://www.microsoft.com/whdc/driver/in ... fault.mspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Yes I looked at that link but not sure how to use DPInst .

I have added the DPInst.exe to the directory. Do I add it into the advanced installer as a custom action?

If I do, what command can I use to let it install an unsigned driver?

It is saying failed to install device ( unsigned ). Do I have to have the driver signed for it to work or is there a workaround?

-Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Riley,

Yes, in order to install your driver using DPInst you need to create a custom action. AI does not offer directly support for DPInst.

For more details about how to use DPInst.exe please see:
http://msdn2.microsoft.com/en-us/library/ms791068.aspx
If I do, what command can I use to let it install an unsigned driver?
You can install usigned drivers but you will get an warning message about that. See this for more details:
http://msdn2.microsoft.com/en-us/library/ms791063.aspx

As an example you can use an "Attached Custom Action" with following command line: /path [Drivers_DIR] (where Drivers_DIR is the directory that contains the driver .inf file, use "Edit..." button to pick it).

For all command line switches supported by DPInst.exe see:
http://msdn2.microsoft.com/en-us/library/ms790806.aspx

Hope this helps.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Thanks for your help.

If I add that /add command to the custom action I get the following error when I try installing it -

Image

And if I do not add that /add command to the custom action it will say this -

Image

So it is being pointed to the incorrect path I'm guessing?

-Riley
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

I think I got it working by using Installed custom action instead of attached custom action.

Will update you if I have further problems.
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

I was able to set it up so that when they select the printer it asks them to install the driver. But When installing the driver and when I click next in the Device Driver Installation Wizard it gives me the following error in the Status section -

Code: Select all

Not needed (No device for update present)
Now the printer is plugged in, but I'm guessing it is doing this since the printer is Parellel therefor there is no plug and play.

Do I have to specifically setup the device driver installation wizard somehow to look at the port for the printer? I don't see any command-line switches that can do this.

Thanks,

Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Riley,

I'm afraid I cannot help you regarding this since I'm not very familiar with installing non plug and play printer drivers.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

How can I use a command line with DPInst?

I tried adding some parameters to the command line section in the custom action for DPinst, but just got errors.

Thanks,

Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I think the problem resides in the way your driver INF file is configured. The requirements for driver packages used with the DIFx tools can be found at the following URL:
http://download.microsoft.com/download/ ... s_reqs.doc

Add your driver INF file in the "Drivers" page of Advanced Installer (make sure the driver files are added to the "Files and Folders" page) and generate a log file while installing the package. Send the log file to support at advancedinstaller dot com. Maybe we can help you.

To obtain the log file run the package with following command line:
msiexec /i package.msi /l*v package.log

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Do you know which PackageType a printer driver would be? I need to add the line into the inf saying which packagetype single parallel port is not plug and play.

Also, should I try getting the driver signed, as currently I am using legacy mode with the xml file in order to try installing an unsigned driver, do you think having it signed may help also.

-Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Riley,
Do you know which PackageType a printer driver would be? I need to add the line into the inf saying which packagetype single parallel port is not plug and play.
I'm afraid I'm not familiar with configuring an INF driver. You should address this question to your driver vendor.
Also, should I try getting the driver signed, as currently I am using legacy mode with the xml file in order to try installing an unsigned driver, do you think having it signed may help also.
Yes, it's recommended to have the driver signed.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Please see the driver here -

http://drivers.softpedia.com/progDownlo ... 34049.html

This is the driver for the printer I am trying to use DPInst with.

If I add just the DriverPackageType, it will say installation failed, and I have tried every type of packagetype, and I do not know if there is a file in this driver download that signs the driver, I do not think there is one, is there? Please download the driver if you can from that link and let me know, also if you can let me know what kind of packagetype this driver is that would help. It is just a printer using the parallel port connection.

If I knew the packagetype I can look at that specific one in the requirements and investigate it a bit more. If the printer is not connected will it say Install Failed, or will a different error come up? Because on this system I do not have the printer physically here, so I can not plug it in. I'm guessing it should say a different error if the printer is not found, like "device not found", which is what it says if I do not add in any packagetype or catalog file, because by defualt it uses plug and play, and the printer is not plug and play, so it does not find it, so it displays message "Not needed (no device for update present).

Please help me if you can, I'm kind of lost here, the situation is this printer is parallel port so it is not plug and play, so need to tell the DPInst that it is not plug and play by using the packagetype I guess, but there being no signature might also be getting in the way.

Thanks,

Riley
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I have tried every type of packagetype, and I do not know if there is a file in this driver download that signs the driver, I do not think there is one, is there? Please download the driver if you can from that link and let me know, also if you can let me know what kind of packagetype this driver is that would help
I'm afraid I'm not familiar on how to sign a driver or how to configure the INF file. You should address this question to your driver developer.

However I have tested the driver files you have provided (added them in AI by using the "Driver..." wizard) and the installation was successful on my XP test computer. The driver is listed in the printers list when I try to add it.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Is that using DPInst or just using the add as a driver and using advanced installer only.

-Riley

Return to “Common Problems”