Loading mbackup-config/default-list.txt +2 −2 Original line number Diff line number Diff line # dirs to backup C:\ProgramData\mbackup C:\path\to\dir D:\path\to\dir C:\Docs D:\Docs mbackup.fsproj +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers> <RootNamespace>Mbackup</RootNamespace> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <Version>0.4.5.0</Version> <Version>0.4.6.0</Version> </PropertyGroup> <ItemGroup> Loading mbackup.wxs +9 −9 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> <Directory Id="ProgramMenuFolder"> <Directory Id="mbackup_start_menu_dir" Name="mbackup" /> <Directory Id="MbackupStartMenuDir" Name="mbackup" /> </Directory> </Directory> Loading Loading @@ -44,19 +44,19 @@ </DirectoryRef> <DirectoryRef Id="DesktopFolder"> <Component Id="mbackup_desktop_shortcuts" Guid="*"> <Component Id="MbackupDesktopShortcut" Guid="*"> <Shortcut Id="DesktopMbackupExe" Name="mbackup" Description="Backup your computer using rsync" Target="[!filE3FFB5E42FD6DDB7AD945F29409779F0]" WorkingDirectory="MBACKUP_PROGRAM_FILES"/> <RemoveFolder Id="MbackupDesktopShortcut" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup\desktopshortcuts" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue Root="HKCU" Key="Software\mbackup" Name="DesktopShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> <DirectoryRef Id="mbackup_start_menu_dir"> <Component Id="mbackup_start_menu" Guid="F7C168BA-BDC9-4C4D-8AE7-722AC399AFD5"> <DirectoryRef Id="MbackupStartMenuDir"> <Component Id="MbackupStartMenuShortcuts" Guid="*"> <Shortcut Id="StartMenuMbackupExe" Name="mbackup" Description="Backup your computer using rsync" Loading @@ -77,8 +77,8 @@ Description="mbackup local-exclude.txt file" Target="[!local_exclude.txt]" WorkingDirectory="MBACKUP_PROGRAM_FILES"/> <RemoveFolder Id="mbackup_start_menu_dir" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup\startmenushortcuts" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RemoveFolder Id="MbackupStartMenuDirRemove" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup" Name="StartMenuShortcutsInstalled" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> Loading Loading @@ -123,8 +123,8 @@ <ComponentRef Id="local_exclude.txt" /> <ComponentRef Id="mbackup_config.txt" /> <ComponentRef Id="user_default_list.txt" /> <ComponentRef Id="mbackup_start_menu" /> <ComponentRef Id="mbackup_desktop_shortcuts" /> <ComponentRef Id="MbackupDesktopShortcut" /> <ComponentRef Id="MbackupStartMenuShortcuts" /> </Feature> </Product> </Wix> operational +35 −1 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2019-11-12 Time-stamp: <2019-11-16> Time-stamp: <2019-11-17> #+STARTUP: content * notes :entry: ** 2019-11-13 how to run it in dev env? Loading Loading @@ -372,6 +372,40 @@ so it doesn't show publisher unknown. I can make use of /RI, run mbackup every 30min. TODO what happen if last run have not finished yet? does /RI interval count from last exit? - DONE mbackup start menu dir is not deleted when mbackup is uninstalled. // it is auto deleted now. tested 0.4.6.0 on B75I3. I want to install as per machine, not per user. changed reg root key to HKLM. c# - How can I create a shortcut on the Users Desktop folder - Stack Overflow https://stackoverflow.com/questions/29255922/how-can-i-create-a-shortcut-on-the-users-desktop-folder/29498210#29498210 installer - How to create desktop shortcut for all users in WIX - Stack Overflow https://stackoverflow.com/questions/2211218/how-to-create-desktop-shortcut-for-all-users-in-wix per machine requires set ALLUSERS=1. how to set it? add inside <Product> <Property Id="ALLUSERS">1</Property> that result in error. Setting the 'AllUsers' option on Wix installer does not work - Stack Overflow https://stackoverflow.com/questions/17878460/setting-the-allusers-option-on-wix-installer-does-not-work set InstallScope="perMachine" should set ALLUSERS key. search: wix can't use HKLM InstallScope="perMachine" - info: install for all users is trouble some in wix. it's not clear how to install shortcuts. when install as per User. current user can edit mbackup-config.txt file. when install as per machine, only admin can edit that file. maybe just install per User. when install scheduled task, run as current user. task name should also include current user name. - ** 2019-11-12 how to test it? test it in a win 10 VM? Loading Loading
mbackup-config/default-list.txt +2 −2 Original line number Diff line number Diff line # dirs to backup C:\ProgramData\mbackup C:\path\to\dir D:\path\to\dir C:\Docs D:\Docs
mbackup.fsproj +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers> <RootNamespace>Mbackup</RootNamespace> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <Version>0.4.5.0</Version> <Version>0.4.6.0</Version> </PropertyGroup> <ItemGroup> Loading
mbackup.wxs +9 −9 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ </Directory> <Directory Id="DesktopFolder" Name="Desktop" /> <Directory Id="ProgramMenuFolder"> <Directory Id="mbackup_start_menu_dir" Name="mbackup" /> <Directory Id="MbackupStartMenuDir" Name="mbackup" /> </Directory> </Directory> Loading Loading @@ -44,19 +44,19 @@ </DirectoryRef> <DirectoryRef Id="DesktopFolder"> <Component Id="mbackup_desktop_shortcuts" Guid="*"> <Component Id="MbackupDesktopShortcut" Guid="*"> <Shortcut Id="DesktopMbackupExe" Name="mbackup" Description="Backup your computer using rsync" Target="[!filE3FFB5E42FD6DDB7AD945F29409779F0]" WorkingDirectory="MBACKUP_PROGRAM_FILES"/> <RemoveFolder Id="MbackupDesktopShortcut" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup\desktopshortcuts" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue Root="HKCU" Key="Software\mbackup" Name="DesktopShortcutInstalled" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> <DirectoryRef Id="mbackup_start_menu_dir"> <Component Id="mbackup_start_menu" Guid="F7C168BA-BDC9-4C4D-8AE7-722AC399AFD5"> <DirectoryRef Id="MbackupStartMenuDir"> <Component Id="MbackupStartMenuShortcuts" Guid="*"> <Shortcut Id="StartMenuMbackupExe" Name="mbackup" Description="Backup your computer using rsync" Loading @@ -77,8 +77,8 @@ Description="mbackup local-exclude.txt file" Target="[!local_exclude.txt]" WorkingDirectory="MBACKUP_PROGRAM_FILES"/> <RemoveFolder Id="mbackup_start_menu_dir" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup\startmenushortcuts" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RemoveFolder Id="MbackupStartMenuDirRemove" On="uninstall"/> <RegistryValue Root="HKCU" Key="Software\mbackup" Name="StartMenuShortcutsInstalled" Type="integer" Value="1" KeyPath="yes"/> </Component> </DirectoryRef> Loading Loading @@ -123,8 +123,8 @@ <ComponentRef Id="local_exclude.txt" /> <ComponentRef Id="mbackup_config.txt" /> <ComponentRef Id="user_default_list.txt" /> <ComponentRef Id="mbackup_start_menu" /> <ComponentRef Id="mbackup_desktop_shortcuts" /> <ComponentRef Id="MbackupDesktopShortcut" /> <ComponentRef Id="MbackupStartMenuShortcuts" /> </Feature> </Product> </Wix>
operational +35 −1 Original line number Diff line number Diff line * COMMENT -*- mode: org -*- #+Date: 2019-11-12 Time-stamp: <2019-11-16> Time-stamp: <2019-11-17> #+STARTUP: content * notes :entry: ** 2019-11-13 how to run it in dev env? Loading Loading @@ -372,6 +372,40 @@ so it doesn't show publisher unknown. I can make use of /RI, run mbackup every 30min. TODO what happen if last run have not finished yet? does /RI interval count from last exit? - DONE mbackup start menu dir is not deleted when mbackup is uninstalled. // it is auto deleted now. tested 0.4.6.0 on B75I3. I want to install as per machine, not per user. changed reg root key to HKLM. c# - How can I create a shortcut on the Users Desktop folder - Stack Overflow https://stackoverflow.com/questions/29255922/how-can-i-create-a-shortcut-on-the-users-desktop-folder/29498210#29498210 installer - How to create desktop shortcut for all users in WIX - Stack Overflow https://stackoverflow.com/questions/2211218/how-to-create-desktop-shortcut-for-all-users-in-wix per machine requires set ALLUSERS=1. how to set it? add inside <Product> <Property Id="ALLUSERS">1</Property> that result in error. Setting the 'AllUsers' option on Wix installer does not work - Stack Overflow https://stackoverflow.com/questions/17878460/setting-the-allusers-option-on-wix-installer-does-not-work set InstallScope="perMachine" should set ALLUSERS key. search: wix can't use HKLM InstallScope="perMachine" - info: install for all users is trouble some in wix. it's not clear how to install shortcuts. when install as per User. current user can edit mbackup-config.txt file. when install as per machine, only admin can edit that file. maybe just install per User. when install scheduled task, run as current user. task name should also include current user name. - ** 2019-11-12 how to test it? test it in a win 10 VM? Loading