Copy certificate to Certificate store - Advanced Installer Community

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!

dawies
Posts: 40
Joined: Thu Jun 23, 2011 7:03 am

Copy certificate to Certificate store

Hi there,

I need to copy some cert to the cert store during installation. I have build an .msi that copies the certs to the installation folder an then use a custom action that launches an .exe (certmgr.exe) which should copy the certificate to the certificate store.

Problem is that the .exe cannot access the file that I copied to the app folder.

Any suggestions? Or is there maybe a better way to get my certs to the certs store.

kind regards,

Dawie
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Copy certificate to Certificate store

Hi Dawie,

This is probably happening because you scheduled the custom action that runs "Certmgr.exe" before the certificate file is copied on the target machine.

To run a command line for "Certmgr.exe" you should use a "Launch file or open URL" custom action set after the Install standard action. It should also be set with "Deferred with no impersonation" execution option.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”