<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:174735988;
        mso-list-type:hybrid;
        mso-list-template-ids:-304453620 653426740 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-number-format:alpha-upper;
        mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have another problem with my CPack installer for windows.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to install a couple of test input files for my program. However, I need my program to be able to write into the same directory as that of the input files. Since this directory is in a system directory (Program Files (x86)), on
Windows 7, the files actually get written to the Virtual Store. Which isn’t horrible, but it makes it hard on the users running the script. Is there some way for me to either: A) Install these examples into a non-system directory, or B) change the permissions
to world writable on the Examples directory?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">A)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>I tried: <br>
install(FILES psuadeForWin.in DESTINATION c:/myLibFiles/Examples/MOO)<br>
But that complained: ABSOLUTE path INSTALL DESTINATION forbidden (by caller):<br>
I tried setting:<br>
set (CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION OFF) <o:p></o:p></p>
<p class="MsoListParagraph">set (CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION OFF)<br>
But they didn’t seem to have any effect.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">B)<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Then I tried this to change the permissions:<o:p></o:p></p>
<p class="MsoListParagraph">install (DIRECTORY "Examples" DESTINATION "." DIRECTORY_PERMISSIONS
<br>
OWNER_WRITE OWNER_READ OWNER_EXECUTE<br>
GROUP_WRITE GROUP_READ GROUP_EXECUTE<br>
WORLD_WRITE WORLD_READ WORLD_EXECUTE)<o:p></o:p></p>
<p class="MsoListParagraph">But that had no effect on Windows.<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For those who care, a little more detail on why I need this functionality:<br>
This program was not written by me, but I need to get a beta release out the door ASAP, so I don’t have time fix much.
<br>
This program runs from the command line (it was written on Unix). You run like this:<o:p></o:p></p>
<p class="MsoNormal">myProg inputFile.in<o:p></o:p></p>
<p class="MsoNormal">myProg then automatically runs a bunch of simulator program runs. It needs a path to the simulator, and for new user purposes, it’s easiest to have the simulator in the same Examples directory as the input file.<o:p></o:p></p>
<p class="MsoNormal">myProg then generates a file called myProgData in the current working directory<o:p></o:p></p>
<p class="MsoNormal">then you must rename myProgData to something else. Say, fooData<o:p></o:p></p>
<p class="MsoNormal">then you can run:<o:p></o:p></p>
<p class="MsoNormal">myProg<o:p></o:p></p>
<p class="MsoNormal">> load fooData<o:p></o:p></p>
<p class="MsoNormal">> Do some computations<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The rename step is the problem here. The virtual store is transparent to myProg, but calling rename from the command line doesn’t seem to work without a full absolute path into the Virtual Store. If there’s a better way to do the renaming,
I can also avoid the above issues. My only other idea is to have some sort of renaming script for which the virtual store is also transparent.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jim <o:p></o:p></p>
</div>
</body>
</html>