Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Does anybody know how i can register a PKCS#11 library (.dll) file into mozilla firefox browser via a MSI setup file. This MSI file is written using WiX XML language. It supports writing custom actions in different languages such as C++ (my preference) and JavaScript
Posted

1 solution

speed reading the docs register pkcs11[^] you need to call an exported function ?

you need to write a custom action[^]

Of the Custom Action types
[^] Type18 is probably the easiest to implement what you want to do - though i don't know (and it's not documented) if the command line string can use MSI formatted string notation[^] (because you'll want to know the location of your installed DLL - #filekey )

for the love of cheese, handle uninstall and rollback ( Condition syntax[^] in your InstallExecuteSequence[^] entries (plural) )

No idea how wix exposes these items, but given it's written by the MSI dev team, it probably does it well
 
Share this answer
 
Comments
Member 11873265 30-Jul-15 7:19am    
hi barneyman,
i actually wanted to know in-script execution options which can be applied.Do u have any idea regarding it?
barneyman 2-Aug-15 18:06pm    
it'll have to be a deferred action, to run during the install - MSI's run 'twice', once to generate the scripts, then the execute the scripts - it's very difficult to get user data to a deferred action that's not been worked out in the scripts (the latter includes file#, and properties, including directories)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900