<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>SyMenu - Configure portable programs - Autorun 32 or 64 bit version of app - Messages</title>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<description>SyMenu - Configure portable programs - Autorun 32 or 64 bit version of app - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<pubDate>Tue, 07 Aug 2018 11:23:38 GMT</pubDate>
<lastBuildDate>Tue, 07 Aug 2018 11:23:38 GMT</lastBuildDate>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from VVV_Easy_Symenu</title>
<description><![CDATA[<b>Non official Update</b>:<br/>1) Added Debug option<br/>2) Rewritten with the AHK V.1.1.29.1 possibilities.<br/><br/><br/>Only update from 31/12/2016 version if you have problems.<br/><br/><br/>.<br/><br/><i>edited by VVV_Easy_Symenu on 07/08/2018</i>]]></description>
<pubDate>Tue, 07 Aug 2018 11:23:38 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from Gianluca</title>
<description><![CDATA[Ok I haven't seen that you already solved the problem. Thanks.<br/><br/>My two cents, if someone prefer leaving the SyMenuRun32or64.exe in its own folder (for example ".\ProgramFiles\SyMenuRun32or64"), you can use the ..\ to go down one level to the SyMenu root and then add the relative path to the program to execute.<br/><br/>To stay in your example it's something like this:<br/>"..\SPSSuite\SyMenuSuite\7-Zip_(x86)_sps\7zFM.exe"  "..\SPSSuite\SyMenuSuite\7-Zip_(x64)_sps\7zFM.exe"<br/><i>edited by Gianluca on 03/01/2017</i>]]></description>
<pubDate>Tue, 03 Jan 2017 12:15:23 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from VVV_Easy_Symenu</title>
<description><![CDATA[<b>Non official Update</b>:<br/><ul><li>1) Use of <b>A_Is64bitOS</b> in place of IsOS_64bit() as Jess suggested.<br/>2) Change working directoy to the app before run the app.<br/></li></ul><b>Important note:</b><br/> Since SyMenu version 5.07 (<a href="http://www.ugmfree.it/Forum/messages.aspx?TopicID=461" target="_blank" rel="nofollow">New SyMenu version 5.07</a>) the resolution for relative paths has changed so if you want use the autorun like the example, 7-Zip:<br/><br/>".\ProgramFiles\SPSSuite\SyMenuSuite\7-Zip_(x86)_sps\7zFM.exe" ".\ProgramFiles\SPSSuite\SyMenuSuite\7-Zip_(x64)_sps\7zFM.exe" "0"<br/><br/>you need save and use "SyMenuRun32or64.exe" in the SyMenu.exe dir for get the same path that the app.<br/>.New exe compilation (change if you have problems of exe disappearance)<br/>.<br/><i>edited by VVV_Easy_Symenu on 03/02/2017</i>]]></description>
<pubDate>Sat, 31 Dec 2016 15:00:35 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from ZeDingo</title>
<description><![CDATA[Here it is as a CMD script. It doesn't pass parameters because Windows is absolutely terrible at handling parameters in batch files. I'm writing a Win32 utility that will handle this whole mess correctly.<br/><br/>Edit: In a batch script, the fastest/easiest way to check for 64 bit arch is the environment variables. Inside a program, Microsoft recommends using GetProcAddress on kernel32.dll to make sure the call to GetNativeSystemInfo is safe, then GetNativeSystemInfo into a SYSTEM_INFO struct blah blah heavy crap we probably don't need.<br/><br/>I pulled out my Windows 7 ISOs (will need to check on XP/Vista) and opened up the install.wim files. <span style="font-family:arial, sans, sans-serif">WiaExtensionHost64.dll, </span><span style="font-family:arial, sans, sans-serif">ntvdm64.dll, and </span><span style="font-family:arial, sans, sans-serif">wowreg32.exe do not exist in 32-bit System32, but do exist in both SysWOW64 and 64-bit System32. This edit is a reminder to myself to try and use the faster(?) method of checking for a file's existence rather than wading through unnecessary WINAPI calls.</span><br/><i>edited by ZeDingo on 29/02/2016</i>]]></description>
<pubDate>Sun, 28 Feb 2016 17:37:43 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from Jess</title>
<description><![CDATA[<b>ZeDingo</b> wrote:<br/><blockquote><blockquote>Not everyone has Windows installed on C:.</blockquote><br/><br/>Absolutely correct! It was a bit of quick and dirty code written long ago which worked for me (and, I suspect, for the vast majority of Windows users). As it happens AutoHotKey has had a built-in variable <b>A_Is64bitOS</b> since version 1.1.08 which removes the need for a function. However, I can't test it (or any of your suggestions) because I am no longer a Windows user, having moved on to Linux Mint. Feel free to post updated or alternative source code - I'm not possessive <img src="images/smilies/wink.gif" border=0 alt="wink" /><br/><br/>Cheers!]]></description>
<pubDate>Mon, 08 Feb 2016 08:17:50 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from ZeDingo</title>
<description><![CDATA[<blockquote>IsOS_64bit() {<br/>  ; Returns TRUE for 64bit OS<br/>  Return (FileExist("C:\Program Files (x86)")) ? 1 : 0<br/>}<br/></blockquote><br/><br/>Not everyone has Windows installed on C:. You should use "%SYSTEMDRIVE%\Program Files (x86)", or check either PROCESSOR_ARCHITECTURE or PROCESSOR_ARCHITEW6432 is AMD64 or IA64.<br/>PROCESSOR_ARCHITEW6432 will be AMD64 or IA64 when running via WOW64.<br/>PROCESSOR_ARCHITECTURE will be AMD64 or IA64 when running 64-bit native.<br/><br/>And just in case everything's running in 32-bit mode on a 64-bit machine, launch the 64-bit app with %SYSTEMROOT%\sysnative\cmd.exe /c<br/><a href="http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspx" target="_blank" rel="nofollow">HOWTO: Detect Process Bitness</a><br/><br/>EM64T is another possible value of PROCESSOR_ARCHITECTURE, but quite rare.<br/><a href="http://superuser.com/questions/305901/possible-values-of-processor-architecture" target="_blank" rel="nofollow">Possible values of %PROCESSOR_ARCHITECTURE%</a>]]></description>
<pubDate>Sat, 06 Feb 2016 15:51:48 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from Ilias</title>
<description><![CDATA[I have implemented a simple batch script for doing that , but your app it's so much upper levels. Thanks !]]></description>
<pubDate>Thu, 26 Nov 2015 12:07:32 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from VVV_Easy_Symenu</title>
<description><![CDATA[Very useful. Thank you.<br/><br/><br/>Adding an example, CCleaner.<br/>I install CCleaner with SPSuite, add SyItem to <b>SyMenuRun32or64</b> with parameter (copied from the original links):<br/> ".\ProgramFiles\SPSSuite\SyMenuSuite\CCleaner_Portable_sps\CCleaner.exe" ".\ProgramFiles\SPSSuite\SyMenuSuite\CCleaner_Portable_sps\CCleaner64.exe" "1"<br/>and I hide the two original links (I must copy one representative icon for avoid the SyMenu wipe).]]></description>
<pubDate>Thu, 10 Sep 2015 20:49:15 GMT</pubDate>
</item>
<item>
<link>https://ugmfree.it/forum/messages.aspx?TopicID=345</link>
<title>Message from Jess</title>
<description><![CDATA[<b>Update 25 May 2015</b>: Re-wrote the script to fix some bugs and typos, and also to allow additional parameters to be passed to the target app. Attached zip and source files updated. Additional instruction inserted below.<br/><br/>==========<br/><br/><br/>I wrote an AutoHotkey script to detect if the current OS is 32 or 64 bit, and then run the correct version of an app. Obviously, this is only applicable to apps which come in 32 and 64 bit versions! The source code is attached for those who want to check it out, or compile it with AutoHotkey themselves (remember to compile as 32 bit so that it will run on any Windows machine). The compiled EXE file is also attached if you are happy to take me on trust.<br/><br/><b>How To Use It</b><br/><b>1.</b> Place <b>SyMenuRun32or64.exe</b> somewhere on the drive where you have installed SyMenu.<br/><b>2.</b> Open the SyMenu Configuration window (Tools=&gt;Configuration in the pop-up menu).<br/><b>3.</b> Either drag <b>SyMenuRun32or64.exe</b> using your favourite file manager onto the SyMenu Configuration window, or use the <b>Browse for SyItem</b> button at the right side of the <b>Path</b> text box in the Configuration window to locate it.<br/><b>4.</b> Enter the name of the app you want to run in the <b>Program</b> text box.<br/><b>5.</b> Use the <b>Browse for icon</b> button at the right side of the <b>Icon</b> text box to select the EXE file you want to run (either the 32 or 64 bit version, it makes no difference)<br/><b>6.</b> Enter the paths to the 32 and 64 bit versions of the app you want to run in the <b>Program Arguments</b> text box (under <b>Additional Params</b>) like this: <b>"#:\path\to\32bit_file.exe" "#:\path\to\64bit_file.exe"</b><br/>(SyMenu automatically converts the <b>#</b> symbol to the current drive letter before passing the parameters to SyMenuRun32or64.exe)<br/><b>7.</b> If you want the app to run only if there are no other instances of it running, then add a third parameter like this: <b>"1"</b><br/>Be sure to insert a space between the 2nd and 3rd parameters. However the third parameter is optional. If you omit it then SyMenuRun32or64.exe will attempt to run the app regardless.<br/><b>8.</b> If you want to pass parameters to the target app, add them after the third parameter (which <b>must</b> be present). Separate all parameters with a space.<br/><b>9.</b> Click the <b>Save</b> or <b>Save & Exit </b>button.<br/><br/>See attached SyMenuExample.png for an example of what the Configuration should look like.<br/><br/>.<br/><i>edited by Jess on 21/05/2015</i><br/><i>edited by Jess on 21/05/2015</i><br/><i>edited by Jess on 21/05/2015</i><br/><i>edited by Jess on 21/05/2015</i><br/><i>edited by Jess on 21/05/2015</i><br/><i>edited by Jess on 25/05/2015</i>]]></description>
<pubDate>Thu, 21 May 2015 08:19:03 GMT</pubDate>
</item>
</channel>
</rss>
