Login    
   Windows Server to Workstation
   Convert Windows Server 2008/2008 R2/2012 to a Workstation!
    Register FAQ  •  Search    
It is currently Sun May 26, 2013 3:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Uninstalling things that went into "Computer"
PostPosted: Thu May 10, 2012 9:58 pm 
Offline
Win2008Workstation Member
Win2008Workstation Member

Joined: Tue May 01, 2012 8:16 pm
Posts: 11
Instead of continuing to clutter the other thread (Microsoft Server Converter - v.1), I've started a new thread here. =)

Maybe it's just my installation, but in the "Tweak" tab, if I add stuff to "Computer", I cannot remove it. So neige has pointed out how to do it.

Someone can correct me if I'm getting any of this wrong. =)

Users
Most of the "Added" stuff is making a registry change.

In (Program Files (x86)\installation directory)\r2conv\tweaks, you will find tweaks.xml (which is a text file that serves as the menu and parameters for the tweak tab -- also seems to store state).

For example (1 entry):
Code:
  <DomainItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ID>8C548B93-A361-4BDD-91BA-7C67CC079F0F</ID>
    <NT>6.1.amd64</NT>
    <DisplayName>Add "Windows Update" to Computer</DisplayName>
    <Status>Installed</Status>
    <Install>
      <GCommand>
        <ReqRestart>false</ReqRestart>
        <Application>inst.cmd</Application>
        <Commandline>8C548B93-A361-4BDD-91BA-7C67CC079F0F</Commandline>
      </GCommand>
      <RCommand />
    </Install>
  </DomainItem>


Notice how it says inst.cmd in Application and 8C548B93-A361-4BDD-91BA-7C67CC079F0F?

If you take a look at inst.cmd, you'll see that there are bunch of goto labels that correspond to the parameter input -- basically it's a batch file. If you go to the right section:

inst.cmd (section):
Code:
:8C548B93-A361-4BDD-91BA-7C67CC079F0F
   reg import reg\mypc_add_windows_update.reg
   goto :eof


All it does is import that registry file into your registry.

In this case it's (mypc_add_windows_update.reg):
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{36eef7db-88ad-4e81-ad49-0e313f0c35f8}]


So for this particular one, it looks like you can just delete the registry entry and you're done. For others it might be different, so look first before shooting. And I guess you can always ask questions here (or on the forum).

Developers

Not sure who works on the R2Conv tool (or if it's just neige's work).

Anyhow, I'm not sure if the R2Conv tool currently supports any uninstallation -- or plans to do that.

In those menu.xml files:
Code:
  <DomainItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ID>8C548B93-A361-4BDD-91BA-7C67CC079F0F</ID>
    <NT>6.1.amd64</NT>
    <DisplayName>Add "Windows Update" to Computer</DisplayName>
    <Status>Installed</Status>
    <Install>
      <GCommand>
        <ReqRestart>false</ReqRestart>
        <Application>inst.cmd</Application>
        <Commandline>8C548B93-A361-4BDD-91BA-7C67CC079F0F</Commandline>
      </GCommand>
      <RCommand />
    </Install>
  </DomainItem>


1) Was RCommand supposed to be the "uninstall" command? What does the XML for that look like? I couldn't find any examples of the RCommand tag being used.

2) Also, in the r2conv logs, when you unselect one of these tweaks and Apply changes, it logs that it is doing something invalid -- which implies that some sort of uninstall/removal logic was written into r2conv. Does anyone know much about this?

3) There seems to be 2 approaches to this. Modify inst.cmd or create uninst.cmd depending on how we want to partition things. Personally I'd like to modify inst.cmd. It's a bit more complicated, but the install/uninstall for each item happens in the same place -- which makes it harder to make mistakes.

Actually there's a 3rd option, but it would involve changing R2Conv a lot more (and I haven't thought about the update/upgrade scenarios yet). And that is to have the menu.xml stay relatively the same, but modify inst.cmd (and rename it) so that it looks for directories with GUID names. (e.g. 8C548B93-A361-4BDD-91BA-7C67CC079F0F) Depending on what it finds inside, it will handle install/uninstall appropriately by convention -- e.g. *.reg => imports those; install.cmd => calls that on install; uninstall.cmd => calls that on uninstall.

Some idea like that.

4) What's R2Conv written in anyways? (I didn't look too hard.)
---

Thoughts?

(And yes, I can help out a bit.)


 Profile  
 Post subject: Re: Uninstalling things that went into "Computer"
PostPosted: Thu May 10, 2012 10:15 pm 
Offline
Win2008Workstation Member
Win2008Workstation Member

Joined: Tue May 01, 2012 8:16 pm
Posts: 11
In my version, there seems to be a mistake? (Just something I happened to see...)

tweaks.xml (snippet):
Code:
  <DomainItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ID>6BCDC308-DA42-484A-BD4A-830C6CA6A34D</ID>
    <NT>6.1.amd64</NT>
    <DisplayName>Add "Show Hidden Extensions/Files" to ContextMenu</DisplayName>
    <Status>Installed</Status>
    <Install>
      <GCommand>
        <ReqRestart>false</ReqRestart>
        <Application>inst.cmd</Application>
        <Commandline>6BCDC308-DA42-484A-BD4A-830C6CA6A34D</Commandline>
      </GCommand>
      <RCommand />
    </Install>
  </DomainItem>
  <DomainItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <ID>B641E887-FE90-4D8B-9A1D-35FA85218E7A</ID>
    <NT>6.1.amd64</NT>
    <DisplayName>Install Aero Mouse pointers</DisplayName>
    <Status>Installed</Status>
    <Install>
      <GCommand>
        <ReqRestart>false</ReqRestart>
        <Application>inst.cmd</Application>
        <Commandline>B641E887-FE90-4D8B-9A1D-35FA85218E7A</Commandline>
      </GCommand>
      <RCommand />
    </Install>
  </DomainItem>


inst.cmd (snippet):
Code:
:6BCDC308-DA42-484A-BD4A-830C6CA6A34D
   set rkey="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes"
   reg add %rkey% /v "Windows Aero" /t reg_sz /d "%sr%\Cursors\aero_arrow.cur,%sr%\Cursors\aero_helpsel.cur,%sr%\Cursors\aero_working.ani,%sr%\Cursors\aero_busy.ani,%sr%\Cursors\cross_r.cur,%sr%\Cursors\aero_pen.cur,%sr%\Cursors\aero_unavail.cur,%sr%\Cursors\aero_ns.cur,%sr%\Cursors\aero_ew.cur,%sr%\Cursors\aero_nwse.cur,%sr%\Cursors\aero_nesw.cur,%sr%\Cursors\aero_move.cur,%sr%\Cursors\aero_up.cur,%sr%\Cursors\aero_link.cur" /f||exit 1
   reg add %rkey% /v "Windows Aero (large)" /t reg_sz /d "%sr%\Cursors\aero_arrow_l.cur,%sr%\Cursors\aero_helpsel_l.cur,%sr%\Cursors\aero_working.ani,%sr%\Cursors\aero_busy.ani,%sr%\Cursors\cross_rm.cur,,%sr%\Cursors\aero_pen_l.cur,%sr%\Cursors\aero_unavail_l.cur,%sr%\Cursors\aero_ns_l.cur,%sr%\Cursors\aero_ew_l.cur,%sr%\Cursors\aero_nwse_l.cur,%sr%\Cursors\aero_nesw_l.cur,%sr%\Cursors\aero_move_l.cur,%sr%\Cursors\aero_up_l.cur,%sr%\Cursors\aero_link_l.cur" /f||exit 2
   reg add %rkey% /v "Windows Aero (extra large)" /t reg_sz /d "%sr%\Cursors\aero_arrow_xl.cur,%sr%\Cursors\aero_helpsel_xl.cur,%sr%\Cursors\aero_working.ani,%sr%\Cursors\aero_busy.ani,%sr%\Cursors\cross_rl.cur,,%sr%\Cursors\aero_pen_xl.cur,%sr%\Cursors\aero_unavail_xl.cur,%sr%\Cursors\aero_ns_xl.cur,%sr%\Cursors\aero_ew_xl.cur,%sr%\Cursors\aero_nwse_xl.cur,%sr%\Cursors\aero_nesw_xl.cur,%sr%\Cursors\aero_move_xl.cur,%sr%\Cursors\aero_up_xl.cur,%sr%\Cursors\aero_link_xl.cur" /f||exit 3
   %r2_unrar% e -o+ -y rar\cursors.rar "%r2_sr%\Cursors"||exit 4   
   reg import reg\aero_mouse_pointers.reg||exit 5
   rundll32 user32.dll,SystemParametersInfoW 87,0,0,2||exit 6
   goto :eof
   
:B641E887-FE90-4D8B-9A1D-35FA85218E7A
   reg import reg\DisableUserAccountControlFileVirtualizationDriver.reg||exit 1
   goto :eof


It looks like the GUIDs are swapped. 6BCDC308-DA42-484A-BD4A-830C6CA6A34D <-- --> B641E887-FE90-4D8B-9A1D-35FA85218E7A

Is this a mistake?


 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.073s | 13 Queries | GZIP : Off ]