You are here

OO3.2 portable lost user defined pathes

11 posts / 0 new
Last post
gerreg
Offline
Last seen: 14 years 1 month ago
Joined: 2010-03-01 03:40
OO3.2 portable lost user defined pathes

Hello,

We use OO portable for a long time in our office. Since OO 3.1.1 we have a problem.

We use OO portable on the PC an have an central workspace an template folder on the server. After installing OO 3.1.1 - 3.2 we change the path varaibles for workspace and document templates. After closing OO3.2 an restart the software all path changings lost! And the path options was reseted on the basic pathes.

Today i try the new OO 3.2 portable, the problem is the same, after resart all changins lost!

With OO 3.01. portable all runs fine all pathes after a restart was like our settings.

How can I fix the path alternation to our wishes in the later OO versions?

gerreg

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
That's by design ...

... in order to prevent the user to save Data outside the portable installation and leave traces (over the default path settings) on the host system the entries for the user path is mandantory and You are not able to save changes made via Settings-Options (as the way a normal user will do it).

So there is nothing to fix, cause You use the portable version in and unsupported way ;-).

But YOU (!) can change the default user document path settings via an entry
'PortableApps.comDocuments' in the OpenOfficePortable.ini and place it in the folder next OpenOfficePortable.exe. A draft is in every installation in Other\Sources.
If the path exist there should be no reset of the path settings.

Once again: This way is not supported and You use it on Your own risk!

Paid for Software more or less?
What You need is OSS!

gerreg
Offline
Last seen: 14 years 1 month ago
Joined: 2010-03-01 03:40
Thank you for this first step! :-)

Hi Marko,

Ok, this fist change are running fine! Thank you very much!

Can I use the same way to change the pathes for the templates folders?

How is called the paramtere to set the new path in the OpenOfficePortable.ini for the template folders?

No risk, no fun! Wink

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
There is no entry for the template folder ...

... and no need.

If You want to keep Your changes:
*Do all changes to path You want to do
*Close OpenOffice.org Portable
*set the security for all (!)users for the file path.xcu to "Read" (The "ReadOnly" attribute don't work!)
Start OpepenOffice.org again - Your Changes will be alive Wink

PS: Don't forget to remove the security changes if You want to use antother path Wink

Again: It's an unsupported way and You do at at Your own risk

Paid for Software more or less?
What You need is OSS!

jonscrut
Offline
Last seen: 13 years 10 months ago
Joined: 2010-05-11 02:57
Changing template folder

Hi,

Have tried the above suggestion with the ini file and works fine for setting the "My Documents" setting.

I am using Windows 7 and for some reason I cannot change the securirt permissions only to "Read" - it's "Read and Write" or nothing...

Is there a templates setting for the ini file as this is a much easier work around for me?

Thanks!

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
Next version will be able to change every path entry ...

... and will be available soon.

Paid for Software more or less?
What You need is OSS!

Quaser
Offline
Last seen: 1 year 2 months ago
Joined: 2009-03-19 04:18
Are there examples for the

Are there examples for the other settings?
So I will put Java off.

thx
Quaser

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
there ar no settings for putting java off ...

... You can only enable Java Portable instead of the hosts java.

If You want to disable java (keep in mind that base, some assistents an configuration tools will not work without it) set it off under Settings-Options-Java and close OpenOffice.org Portable.

Set the file javasettings_Windows_x86 in Data\settings\user\config to read only for all users.

This is no supported feature, You can use it at Your own risk!

Paid for Software more or less?
What You need is OSS!

dacm
Offline
Last seen: 13 years 3 months ago
Joined: 2010-02-18 20:44
I use a slightly more

I use a slightly more flexible solution discussed here:
http://www.oooforum.org/forum/viewtopic.phtml?p=363191#363191

MarkoMLM
MarkoMLM's picture
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2006-01-16 04:08
Please don't use this 'solution'

it will break the portable mode.

If You'll use the OpenOffice.org executables directly You'll use it like the standard version.

My answer to Yor other post is here:
https://portableapps.com/node/22809#comment-145115

Paid for Software more or less?
What You need is OSS!

mimiselfani
Offline
Last seen: 12 years 5 months ago
Joined: 2011-10-10 07:45
An AutoIt script seems to work OK

I have created an AutoIt script which seems to work (I'm running Oop 3.2.0).

The script can be converted to an EXE file, and I simply run the EXE each time I insert my thumbdrive (I name the EXE "!Start.EXE" - the "!" puts it at the top of the alphabetical list of drive contents). The script automatically runs StartPortableApps.exe after setting the documents path for Open Office, so if you have autorun working, you should edit the autorun as well.

The EXE (or script if you don't convert it to an EXE) must be in the root directory/folder of your portable drive.

---------------------

; AutoIt Version: 3.0
; Language: English
;
; Script Function:
; Sets OpenOfficePortable Documents Path and then quits.
;
$sIni = @ScriptDir & "PortableApps\OpenOfficePortable\OpenOfficePortable.ini"
$sData1 = @ScriptDir & "Documents\"
$sData2 = "OpenOfficeDirectory=App\openoffice" & @LF & "SettingsDirectory=Data\settings" & @LF & "OpenOfficeExecutable=soffice.exe" & @LF & "AdditionalParameters=" & @LF & "WaitForOpenOffice=false" & @LF & "RunDataLocally=false" & @LF & "PortableApps.comTemp=X:\temp\" & @LF & "PortableApps.comDocuments=" & $sData1
IniWriteSection($sIni, "OpenOfficePortable", $sData2)
Run(@ScriptDir & "StartPortableApps.exe")

---------------------

This script works where OpenOffice is in \PortableApps\OpenOfficePortable on the drive, and the documents path I want is \Documents

Edit as required.

AutoIt is available at

http://www.autoitscript.com/site/autoit/downloads/

Log in or register to post comments