<table><tr><td style="">Petross404 updated this revision to Diff 43248.<br />Petross404 added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15976">View Revision</a></tr></table><br /><div><div><p>Our script now initializes the environment correctly (at least for VS2017) even if the user doesn't run it from <tt style="background: #ebebeb; font-size: 13px;">Developers Command Prompt</tt>. It reads Registry to find the path under which VS2017 is installed (I fear that I read the wrong <tt style="background: #ebebeb; font-size: 13px;">variable</tt> from the Registry).</p>
<p>The script asks for the architecture when it's ran by clicking but it doesn't when it's ran from <tt style="background: #ebebeb; font-size: 13px;">DCP</tt>. I didn't want to add more lines.</p>
<p>When <tt style="background: #ebebeb; font-size: 13px;">kdevelop-msvc.bat</tt> is dealing with VS2017 <em>and </em><tt style="background: #ebebeb; font-size: 13px;">VS150COMNTOOLS</tt> defined <em>or</em> older VS versions, it makes use of the <tt style="background: #ebebeb; font-size: 13px;">script</tt> variable, while when dealing with VS2017 without <tt style="background: #ebebeb; font-size: 13px;">VS150COMNTOOLS</tt> defined (i.e. <tt style="background: #ebebeb; font-size: 13px;">kdevelop-msvc.bat</tt> was clicked) it reads the Registry and asks for architecture.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D15976?vs=43178&id=43248">https://phabricator.kde.org/D15976?vs=43178&id=43248</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15976">https://phabricator.kde.org/D15976</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>app/windows/kdevelop-msvc.bat</div></div></div><br /><div><strong>To: </strong>Petross404, KDevelop, kfunk<br /><strong>Cc: </strong>kfunk, arrowd, kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight<br /></div>