Details

    • Documentation:
      N/A
    • Similar issues:

      Description

      On Windows 7 there are additional security setting which forbid writing in the Program Files directory even for Admin users.
      Since the XWiki installer puts the log and jetty database into the XWiki Enterprise directory in the Program Files directory, XWiki cannot properly start even when running as Administrator.

      It would be needed to move the writable files into the Program Data directory.

        Issue Links

          Activity

          Hide
          Vincent Massol added a comment -

          As a stopgap solution I've updated http://enterprise.xwiki.org/xwiki/bin/view/Main/Download to explain to use the ZIP distribution when on Windows7 (for now).

          Show
          Vincent Massol added a comment - As a stopgap solution I've updated http://enterprise.xwiki.org/xwiki/bin/view/Main/Download to explain to use the ZIP distribution when on Windows7 (for now).
          Hide
          Vincent Massol added a comment -

          FTR, here's the strategy I'm implementing:

          • Move all writable data to the $ {environment.permanentDirectory}

            directory

          • Check if on windows7 in generic installer and if so copy database data to the PROGRAMDATA/XWiki directory at install time
          • Change value of xwiki.properties.environment.permanentDirectory Maven property in generic installer POM when in Windows7 to be: $ {env:PROGRAMDATA}

            /XWiki so that at runtime it uses the PROGRAMDATA directory

          Show
          Vincent Massol added a comment - FTR, here's the strategy I'm implementing: Move all writable data to the $ {environment.permanentDirectory} directory Check if on windows7 in generic installer and if so copy database data to the PROGRAMDATA/XWiki directory at install time Change value of xwiki.properties.environment.permanentDirectory Maven property in generic installer POM when in Windows7 to be: $ {env:PROGRAMDATA} /XWiki so that at runtime it uses the PROGRAMDATA directory
          Hide
          Vincent Massol added a comment - - edited

          Committed a first version. What remains:

          • More testing
          • Figure out how to solve the IzPack regression for windows shortcuts, see http://jira.codehaus.org/browse/IZPACK-808
          • It seems uninstalling will also remove the XWiki data in %APPDATA%, we should prevent this if possible or at least ask the user

          Nice to have:

          • Prevent users from installing shortcuts for all users since they'll have an empty data dir and thus an empty wiki. This requires creating a custom IzPack Panel.
          • Ask user where to put the Data with a default to %APPDAT%
          • -Use the version in the shortcuts so that the user can install several XWiki versions next to each other (this is already supported at the level of the data dir)- Implemented as XE-1183
          Show
          Vincent Massol added a comment - - edited Committed a first version. What remains: More testing Figure out how to solve the IzPack regression for windows shortcuts, see http://jira.codehaus.org/browse/IZPACK-808 It seems uninstalling will also remove the XWiki data in %APPDATA%, we should prevent this if possible or at least ask the user Nice to have: Prevent users from installing shortcuts for all users since they'll have an empty data dir and thus an empty wiki. This requires creating a custom IzPack Panel. Ask user where to put the Data with a default to %APPDAT% - Use the version in the shortcuts so that the user can install several XWiki versions next to each other (this is already supported at the level of the data dir) - Implemented as XE-1183
          Hide
          Vincent Massol added a comment -

          Reminder: for 4.1, commit a simple version that installs XWiki at the C:\ root for Windows7 as a temporary solution while waiting for 4.2.

          Show
          Vincent Massol added a comment - Reminder: for 4.1, commit a simple version that installs XWiki at the C:\ root for Windows7 as a temporary solution while waiting for 4.2.

            People

            • Assignee:
              Vincent Massol
              Reporter:
              Ludovic Dubost
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: