[mpp-beta] mpp portable
Status: Beta
Brought to you by:
sgt-d
From: sod/sgt-d <sg...@so...> - 2007-04-07 16:34:04
|
i am attempting to come up with "safe" upgrade installers for mpp portable... the installer is 100% safe and works if installed "stand alone", but now it doesn't install correctly if you try to install if from inside the portable apps menu system. PA uses 7z.exe -oDIR to extract 7z exe files, the new mpp portable (safe for upgrades) is no longer a 7z, it is an nsis exe. i have tried all three public versions of the portable menu, none work. major: (11:23:26 AM) <+sgt-d> damn. if i build an exe with nsis, i should be able to pass any arguments to it that i want to instead of just /ncrc /s and /d. i should be able to tell my exe to check the command line arguments that were passed to it and to act on any of them that i want it to. (11:25:14 AM) <+sgt-d> for example, portableapps.com - their start menu installer relies heavily on the .exe file to be a .7z file. well, i can't use that because my installer has to be more careful --- during re-installations it can't overwrite some files. nsis is smart enough that it can be coded to avoid an accidental overwrite where 7z would just overwrite all files. (11:27:02 AM) <+sgt-d> BUT... portableapps.com is passing -oDIR to the .7z exe, so in the end it is installed to the correct spot. my nsis exe is unable to receive, view, copy, or even show me what arguments were passed to it, so it never sets $instdir/$outdir and so it never installs correctly under portableapps.com. minor: (5:27:02 AM) <+sgt-d> stupid question time --- file /a --- why does file /a NOT preserve the attributes of FOLDERS? i have +r folders (to show icons using desktop.ini) and the +r is not being preserved when using file /a. /sgt |