lessmsi icon indicating copy to clipboard operation
lessmsi copied to clipboard

Portable mode

Open hellishvictor opened this issue 4 years ago • 2 comments

Hi, the program creates a file on: C:\Users\USERNAME\AppData\Local\LessMsi\lessmsi-gui.exe_Url_2f40pggqe2qwc3oufnjnqq0l3gqel3k3\1.6.91.0\user.config

It would awesome if it were created only on the same folder where the executable is, so that it can be used as portable on a USB pendrive, and without leave traces. Cheers.

hellishvictor avatar Apr 26 '20 00:04 hellishvictor

It is using System.Configuration.ApplicationSettingsBase to store the recent files opened so I think that's where that file is coming from. If someone submitted a PR to store them locally I'd accept it (assuming tests all pass, it is a minimal change, etc.)

Settings are handled at https://github.com/activescott/lessmsi/tree/master/src/LessMsi.Gui/Properties

And as far as I recall the only thing saving/loading settings is in https://github.com/activescott/lessmsi/blob/master/src/LessMsi.Gui/MruMenuStripManager.cs#L69

activescott avatar May 18 '20 03:05 activescott

$ ls -1p *.*
LessIO.dll      
lessmsi.core.dll
lessmsi.exe     
libmspackn.dll  
mspack.dll      
wix.dll         
wixcab.dll      

Could you be so kind to pack this whole zoo into one neat executable?

sergeevabc avatar Apr 01 '21 19:04 sergeevabc