Hello community,
a young unemployed german autistic computer sciene expert for systemintegration (only very low basic programming experience) wants to try something new.
I am trying to create a portable app of a CAD software. The software is avialable in x86 and x64.
It uses phython 2.7 32 bit and 64 bit, Trolltech libraries (Qt*.dll) in 32 bit and 64 bit and OpenSCAD in 32 bit and 64 bit.
The complete package can be 1.02gb~1.2gb (based on your filesystem blocksize).
And it is based on the latest portableapp template.
Also the registry entries are different from the 32 bit and 64 bit software.
Unfotunately there are absolute paths needed in the registry and the 32 bit & 64 bit are very different in the registry values.
But fortunately the app autodetects the language and accepts relative paths for the ccx.exe and OpenSCAD.exe inside the user.cfg file.
Splitting the app into a 32 bit and a 64 bit is not what I want.
The application is named FreeCAD.
I don't know how to quote my .ini files and other text i wrote in the process.
Please help the freshman.
My Appinfo.ini:
Because until now I didnt get any idea from nobody, I feel forced to split the app into a 32 bit ad a 64 bit.
So I want to try the 32 bit app first.
Problems to solve:
1. Paths in the Trolltech.reg
2. Paths in the user.cfg, because it uses sometimes "/" instead of "\", also the not supportet %APPDATA% and %TEMP% variables are not supportet.
Here is the Trolltech.reg (32 bit):
Here is my user.cfg (32 bit):
And here is my FreeCADPortable.ini (32 bit) from the Launcher folder:
So far, nothing is working yet.
This is really frustrating and kills my nerves.
How do I need to modify the filewrite commands to get the folders in the reg files and in the user.cfg correctly modified?
And how does the temporarely insert to the registry work?
I don't have the time to sift through the entire thing, but have you seen the [QtKeysCleanup] documentation in the manual? It looks like it would be of use to you and might give you a step in the right direction.
One problem I did notice you have - FileWrites must be consecutive numbers - commenting out 3 will break any that come after it.
I corrected the numbers of filewrite.
But I Need to replace the "MacroPath" and the "WorkingDir" in a XML file called user.cfg.
It ist not C:\ it is C:/. And there is the problem.
Two fliewrite actions are needed to Change C:/Users/1/AppData/Roaming/FreeCAD/Macro and c:\users\1\appdata\local\temp to %APPDATA%/FreeCAD/Macro and %TEMP% in absolute paths.
So how shall I modify my filewrite?
[update 23.01.2018]
I was able to construct a enviroment variable for Windows Vista/7/8/8.1/10
MacroPathVista=%SystemDrive%/Users/%USERNAME%/AppData/Roaming/FreeCAD/Macro
But how must I create it for XP?
[update 24.01.2018]
I got my filewrite 1 &2 correct.
But how shall I manipulate the .reg files?
You need ForwardSlash for C:/. Check here https://portableapps.com/manuals/PortableApps.comLauncher/ref/envsub.htm...
Check this https://portableapps.com/manuals/PortableApps.comLauncher/ref/launcher.i...
I did some extra hours and after a long headache I created for the first time something that seems to be working.
I can't post the paf-installer here. So if anyone wants to check it, please mail me.
Or try it on this hyperlink http://www.filehosting.at/file/details/721504/FreeCADPortable_0.16.paf.exe
It seems that possibly one oremore XPath expressions are incorrect.
Please feel free to post in the Beta testing forum, using the Development Test template.