Andrew Yu
Andrew Yu

Reputation: 31

Using CPACK and WIX, package a installer which creates start menu shortcut and desktop shortcut, and require admin privilige

I'm complete new to windows development, what Im trying to do is to create a installer for windows users that require admin privilige and create shortcuts.

The program is developed by python and pyinstall, which yields a .exe file and a folder containing resource and scripts.

I managed to use CPACK and wix to package a basic installer, which is almost fine, but I failed to get admin privilige and shortcuts to be done. I've tried to do that by CPACK_WIX_xx variables and cutsomizing wxs template, but very soon I've lost in the ocean of errors and unknow terms from google and learn.microsoft.com.

So may I ask:

  1. Is there any simple approach that creates desktop shortcut and startmenu shortcut and add elevated privilige for a MSI with CPACK?
  2. What is the cost if I learn the whole wix tech, and which version should I choise from?

Thank you.

Upvotes: 0

Views: 32

Answers (0)

Related Questions