locked
Change c:\Program files\Company folder permissions RRS feed

  • Question

  • Hello,

    Hope I’m at the right forum…

    I want to know what is Microsoft\MVP’s opinion regarding changing the default permissions of c:\ Program files\Company folder.

    We have a product that is installed in c:\Program files\Company\product with Wix installer (OS Win 7 Embedded).

    The application (during execution) writes data to this folder.

    Non-admin users cannot run the application because c:\Program files folder is restricted

    Recently, I’ve been asked to change this behavior so non-admin users would be able to run the app.

    I’ve made a change so now all application file are under c:\Program files\ Company \product and all data files (xmls, configs, logs, etc.) are placed in c:\ProgrmaData\company\product folder.

    It works, but there is a much easier solution for that:

    The other option is just changing the permissions of c:\Program files\Company folder so Users group will have the modified option set. I tested this option and it works – non-admin can update the folder and run the application.

    I know that the best practice is to have C:\ProgrmaData\company folder for data such as logs, configs, etc. I want to know if I go with the second option (change permission of the folder during installation process) how this might affect the app considering:

    • Upgrading the OS \ Application
    • UAC
    • Creating new account
    • Etc.

    Thanks,
    Roy


    R.R


    • Edited by Roy.Rosenberg Sunday, September 14, 2014 12:12 PM
    • Moved by Barry Wang Monday, September 15, 2014 10:01 AM
    Sunday, September 14, 2014 12:10 PM

Answers

  • Hello Roy,

    This forum may not the right forum for your issue.  "Discuss and ask questions about the install and setup of Visual Studio."

    If you want to know how you can set Wix for your second scenario, please consult on Wix forum

    http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/

    If you want to know what is the usage of the ProgrmaData folder and any others things related to your OS(create account, UAC) End-user forum MS Answers may more appropriate:

    http://answers.microsoft.com/en-us/windows

    Add some info, in MSDN, if you use Setup project or ClickOnce, you can consult on this forum:

    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winformssetup

    Best regards,



    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Barry Wang Monday, September 15, 2014 10:01 AM
    • Proposed as answer by Just Karl Thursday, September 18, 2014 10:23 PM
    • Marked as answer by Just Karl Monday, September 29, 2014 10:57 PM
    Monday, September 15, 2014 10:00 AM