Install change method
-
- Posts: 2
- Joined: Mon Jul 09, 2012 11:35 am
Install change method
Hello,
We have decided to start using the /DoNotAddPrinter option when we install our application. The problem is that we have users who have installed Nova with the /PrinterName="OurPDFPRINTER" option. We are using installshield to deploy your product, what is the best way to make sure at the end of install that the OurPDFPrinter is removed and the /DoNotAddPrinter option is installed? Do I have to run uninstall first to remove this printer or can I do everything from install? Also, I want to have a way to detect the right state so we dont have to run install when the user is setup correctly then next time they upgrade..
Thanks,
Jeff
We have decided to start using the /DoNotAddPrinter option when we install our application. The problem is that we have users who have installed Nova with the /PrinterName="OurPDFPRINTER" option. We are using installshield to deploy your product, what is the best way to make sure at the end of install that the OurPDFPrinter is removed and the /DoNotAddPrinter option is installed? Do I have to run uninstall first to remove this printer or can I do everything from install? Also, I want to have a way to detect the right state so we dont have to run install when the user is setup correctly then next time they upgrade..
Thanks,
Jeff
-
- Posts: 286
- Joined: Wed Dec 16, 2009 12:46 pm
Re: Install change method
Hello,
In order to remove a previously installed novaPDF printer you have to run novaPDF uninstaller. You may check if novaPDF was previously installed on that computer by checking next registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Softland\novaPDF SDK 7\InstallVersion
You may proceed like this: check if novaPDF was installed before, run the uninstaller if it was, than run the setup with the new parameters.
novaPDF setup does not have a way to detect if previous installation added a printer or not. For detecting this you have to check from your code if the printer with that name is in the Windows printers list. Or if you used a previous version /build number of novaPDF when you installed with the printer, you may check the currently version installed using above registry key and decide to uninstall or not based on this information.
Thank you.
In order to remove a previously installed novaPDF printer you have to run novaPDF uninstaller. You may check if novaPDF was previously installed on that computer by checking next registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Softland\novaPDF SDK 7\InstallVersion
You may proceed like this: check if novaPDF was installed before, run the uninstaller if it was, than run the setup with the new parameters.
novaPDF setup does not have a way to detect if previous installation added a printer or not. For detecting this you have to check from your code if the printer with that name is in the Windows printers list. Or if you used a previous version /build number of novaPDF when you installed with the printer, you may check the currently version installed using above registry key and decide to uninstall or not based on this information.
Thank you.
Follow us to stay updated:
- Newsletter (get a discount for subscribing): https://www.novapdf.com/newsletter.html
- Facebook: https://www.facebook.com/novapdf
- Twitter: https://twitter.com/novapdf
- Linkedin: https://www.linkedin.com/showcase/novapdf
-
- Posts: 2
- Joined: Mon Jul 09, 2012 11:35 am
Re: Install change method
I got a lot of this working for x32. The problem comes when I try to use the same code for x64. It does not appear that you guys write anything to the wow6432Node for 32bit versions of setup to read. Is there another indicator I can use when I dont install a printer?
Thanks,
Jeff
Thanks,
Jeff
-
- Posts: 286
- Joined: Wed Dec 16, 2009 12:46 pm
Re: Install change method
Hello,
novaPDF installs as a 64 bit application on Windows x64 systems. You have ro read the 64bit registry information in this case.
Or you may call the EnumPrinters Windows API to see if the printer is installed.
Thank you.
novaPDF installs as a 64 bit application on Windows x64 systems. You have ro read the 64bit registry information in this case.
Or you may call the EnumPrinters Windows API to see if the printer is installed.
Thank you.
Follow us to stay updated:
- Newsletter (get a discount for subscribing): https://www.novapdf.com/newsletter.html
- Facebook: https://www.facebook.com/novapdf
- Twitter: https://twitter.com/novapdf
- Linkedin: https://www.linkedin.com/showcase/novapdf