D
D
DeusModus2013-04-12 17:46:47
C++ / C#
DeusModus, 2013-04-12 17:46:47

How to determine that the portable version of the program is running?

Hey!
We started making “portable. version" that fucking breaks the software update.
Updates sometimes contain important bug fixes and in general, it works quite transparently for the user, without taking much time.
Is there any way to tell if a program has been ported?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Aisu_Kuge, 2013-04-12
@Aisu_Kuge

It's not at all clear what this product is. More info would be.
Usually in portable versions the settings are in *.ini. As an option to protect against “porting” the program, transfer the settings to the registry and, during installation, enter information into the program where the settings are located. If they are not there, then insistently demand to reinstall the program.

A
agmt, 2013-04-12
@agmt

Only indirectly - is it allowed to write to the current folder / to difficult places in the registry, etc.
In general, it is necessary to repair the update system so that it works this way and that. I don't like non-portable software.

V
Vladimir Martyanov, 2013-04-13
@vilgeforce

It depends on how it is made "portable". If with the help of Thinstall and others like it - one thing. Otherwise - different :-)

A
AxisPod, 2013-04-12
@AxisPod

Named mutex? The truth is not in the Global space, so you can’t throw users between sessions. If I understand correctly that you need Windows.

1
1x1, 2013-04-22
@1x1

The installer writes the path and version to the registry.
If, when starting the program, we get a path mismatch, it means portable. If the path matches, but a different version, we show a warning that mixing versions is not good; run the program in this case or config mismatches can be fatal - it's up to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question