firstruninstall
Paul Mulroney
pmulroney at logicaldevelopments.com.au
Mon Jan 23 09:41:25 UTC 2023
Hi Daniel,
When you run the Studio 10.22, build 31896 runtime installer, it gives you three options:
- Standard
- Single Location
- First Run Install
I pick the third option: First Run Install, which then creates the folder like I said previously.
If you pick "Standard", it creates a folder in your c:\users\<your account>\AppData\Local\Omnis Software\ folder, which matches the one in C:\Program Files\Omnis Software eg "OS 10.22 31896 RT" - this is what is usually in the firstruninstall folder.
If you pick "Single location", then it installs as per the old way of putting the whole Omnis application and files into the one location - you will probably need to tweak permissions etc for this to work. We don't use this anymore because Microsoft recommends that the program files folder is set to read-only.
Hope that makes things a little clearer!
Regards,
Paul.
> On 21 Jan 2023, at 1:42 am, Daniel Sananes <daniel.s at kopparbergs.se> wrote:
>
> Hi Paul
> I uninstalled studio 10.22 and have now installed it again. Build 31896.
> In the installation, put in Program files, I see no folder called FirstRunInstall.
> Is this folder supposed to be there now?
> I have not yet opened the omnis.exe.
> The Local App Data-folders for me and default are created.
>
> Regards
> Daniel
>
> -----Ursprungligt meddelande-----
> Från: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> För Phil (OmnisList)
> Skickat: den 20 januari 2023 18:08
> Till: omnisdev-en at lists.omnis-dev.com
> Ämne: Re: Sv: firstruninstall
>
> Hi Daniel,
>
> its either or....
>
> As in, you install it into program files, with a firstruninstall folder, which copies over to AppData (On windows)
>
> Or you install it somewhere else, with read write permissions, without a firstruninstall folder, in this case, what was in firstruninstall folder is just moved up a level, next to Omnis, as all the old versions of Omnis used to do before MS windows stopped you writing in the programs folder.
>
> Does that make it clearer?
>
> regards
> Phil Potter
> Based in Chester in the UK.
>
> On 20/01/2023 16:47, Daniel Sananes wrote:
>> Hi Paul
>>
>> Now i get even more confused.
>> Is there supposed to be a folder called FirstRunInstall?
>> When user launches my app? What is an app? I only know omnis.exe and myprogram.lbs.
>> Launching the app (?) copies the content of FirstRunInstall to users Local App Data folder?
>> I do not have a FirstRunInstall folder.
>> Maybe the runtime installation is different.
>>
>> Best regards
>> Daniel
>>
>> -----Ursprungligt meddelande-----
>> Från: omnisdev-en<omnisdev-en-bounces at lists.omnis-dev.com> För Paul
>> Mulroney via omnisdev-en
>> Skickat: den 20 januari 2023 05:50
>> Till: Omnis-dev list<omnisdev-en at lists.omnis-dev.com>
>> Kopia: Paul Mulroney<pmulroney at logicaldevelopments.com.au>
>> Ämne: Re: firstruninstall
>>
>> Hi Daniel,
>>
>> This split structure is because the program files folder is supposed to be read-only. Since Omnis always writes to library files, it separates the files that need to have write access and places them in the user's profile in the "Local App Data" folder. If you open windows explorer and in the address bar type "%localappdata%" (without the quotes), it will jump to that location. Inside there will be an Omnis folder, and inside that is your particular application instance. What this means is that when a user launches your app, the contents of the FirstRunInstall folder is copied to their Local App Data folder. This means that there can be (potentially) multiple copies of your Omnis library floating around the computer. You will need to have some kind of version control in place to make sure that users don't start your app with an older version of the library.
>>
>> if you don't want to do that, you can move all the files in the firstruninstall folder up one level. One catch is that the files must be writable. You can move the entire Omnis installation to somewhere else outside the Program Files folder, or you can get the properties for the folder and mark all files with read/write access. This option is not recommended by Microsoft - they want you to use option 1 above instead.
>>
>> "Application data is stored a minimum of two times on the disk where Omnis installed." This means that when you install Omnis, there's a copy of the writable files in the FirstRunInstall folder, and when a user starts Omnis for the first time, it's copied into their Local App Data folder. If there are multiple users on the machine, then there will be a copy of this for each user that has launched Omnis.
>>
>> There should be a tech note about this on the Omnis website, something about User Access Control.
>> https://omnis.net/developers/resources/download/manuals/Appendix_Platf
>> orm_Specific.pdf
>> https://omnis.net/developers/resources/technotes/tnwi0001.jsp
>>
>> Once you get the hang of it, it's not so bad.
>>
>> Regards,
>> Paul.
>>
>>
>>> On 20 Jan 2023, at 12:15 pm, Daniel Sananes<daniel.s at kopparbergs.se> wrote:
>>>
>>> Hi all
>>>
>>> I find the installation of Studio (10.22) very confusing.
>>> Hoping for an explanation that rests my dizzy head. Or rather, my stupid head.
>>>
>>>
>>> In the omnis.exe directory-structure, sys(215), there are 11 subdirectories.
>>> (clientserver, external, htmlcontrols, iconsets, idehelp, jscomp, jsidehelp, license, logcomp, uninstall and xcomp).
>>> I have installed this at C:\OmnisStudio\Studio1022 instead of in \Programfiles.
>>>
>>> In the firstruninstall directory-structure, sys(115), there are 18 subdirectories.
>>> (adhoc, chromiumembedded, clientserver, convert, help, html, icons, iconsets, jsworker, local, logs, omnispdf, ports, python, secure, startup, studio, welcome).
>>>
>>> Catalogues clientserver and iconsets exists in both places.
>>>
>>> I place omnis-libraries and sqlite-databases in C:\OmnisStudio\MyPrograms.
>>>
>>> Am I supposed to place my libraries in the sys(115) structure?
>>>
>>> Alex Clay has written about 'Omnis installation locations' at omnis.ci.
>>> The 'Single Location Alternative' states that:
>>> "To bypass the split installation, install the contents of firstruninstall one level higher, into the program directory. On macOS, this means into /Applications/[your app name].app/Contents/MacOS.
>>> Install and run this app from a location that does not restrict read/write access, such as ${HOME}/Applications on macOS or %USERPROFILE%\Programs on Windows."
>>>
>>> How do I install the contents of firstruninstall so I don't have to bother with sys(115)-structure?
>>>
>>> And what does this mean?
>>> "Application data is stored a minimum of two times on the disk where Omnis installed. A master copy of this data is located in the Program Directory under firstruninstall. A copy is also placed in the location listed above for each user on the computer who runs the application."
>>>
>>> Best regards
>>> Daniel
>>> 0736 704070
>>
>> A bicycle can't stand alone; it's just two tired.
>> --
>> Paul W. Mulroney We Don't Do Simple Pty Ltd
>> pmulroney at logicaldevelopments.com.au Trading as Logical Developments
>> www.logicaldevelopments.com.au ACN 161 009 374
>> Ph: +61 8 9458 3889 86 Coolgardie Street
>>
>> BENTLEY WA 6102
>>
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions athttps://lists.omnis-dev.com Start a
>> new message ->mailto:omnisdev-en at lists.omnis-dev.com
>> VARNING: Det här e-postmeddelandet kommer från en extern avsändare. KLICKA INTE på länkar eller bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.
>> _____________________________________________________________
>> Manage your list subscriptions athttps://lists.omnis-dev.com Start a
>> new message ->mailto:omnisdev-en at lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> VARNING: Det här e-postmeddelandet kommer från en extern avsändare. KLICKA INTE på länkar eller bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
If you are wise you will only believe half of what you hear. if you are brilliant you will know which half to believe.
--
Paul W. Mulroney We Don't Do Simple Pty Ltd
pmulroney at logicaldevelopments.com.au Trading as Logical Developments
www.logicaldevelopments.com.au ACN 161 009 374
Ph: +61 8 9458 3889 86 Coolgardie Street
BENTLEY WA 6102
More information about the omnisdev-en
mailing list