Install Certificate

47 views
Skip to first unread message

Achim Stuy

unread,
Oct 17, 2025, 9:28:38 AMOct 17
to inno...@googlegroups.com
Hello,

I want to use Innosetup to install a certificate to the Windows certificate store by executing certutil.exe in the [Run] section. How can I change the [Run] section depending on setup's administrative mode in order to install the certificate to the local machine store or the user's personal store?

Thanks in advance, Achim

Martijn Laan

unread,
Oct 17, 2025, 9:42:23 AMOct 17
to inno...@googlegroups.com
You could have two entries and use Check parameters:

Check: IsAdminInstallMode
Check: not IsAdminInstallMode

Greetings,
Martijn

-------- Original Message --------
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CABhQyysVJvAOsUPdGR4Lz2Oe5TqOPhdKa8gP6ZU7QSDvLO0PxA%40mail.gmail.com.

Martijn Laan

unread,
Oct 17, 2025, 9:51:44 AMOct 17
to inno...@googlegroups.com
You probably also want to use the runasoriginaluser flag.

Greetings,
Martijn 


-------- Original Message --------

Gavin Lambert

unread,
Oct 19, 2025, 7:31:02 PMOct 19
to innosetup
On Saturday, October 18, 2025 at 2:51:44 AM UTC+13 Martijn Laan wrote:
You probably also want to use the runasoriginaluser flag.

I'd think probably not, actually.  In admin mode it should install to HKLM (so must not use runasoriginaluser) and in non-admin mode it shouldn't have elevated so original==current user (which might be the wrong user if the user did something weird, but either way Inno wouldn't know any better).

Martijn Laan

unread,
Oct 20, 2025, 1:13:34 AMOct 20
to innosetup
Sorry, I was mistaken indeed. Thanks!

Greetings,
Martijn 


-------- Original Message --------
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages