c# - VS2010 Setup & Deployment - Creating a File Type (Registry Settings) -


i wanted create file type using visual studio 2010's setup , deployment project.

to followed these steps:

  1. select setup , deployment project in solution explorer

    select project

  2. select file types editor

    file types editor

  3. right click file types on target machine , select add file type

    add file type

  4. choose name file type.

    create name

  5. go properties , add extension , omitting period. i.e instead of .xxx, entering xxx, per msdn docs.

    choose file extensions

  6. choose command file type. in case, want execute installed program.

    select command

  7. finally choose icon file type referring 1 added in project.

historically, never used setup , deployment project. means used .reg files manually install file type association.

what i've noticed significant difference in keys used , compare them , ask happening.

manual registry edits

windows registry editor version 5.00  [hkey_current_user\software\classes\.scfg] @="autocad script runner"  [hkey_current_user\software\classes\autocad script runner] @="autocad script runner configuration" "version"="1.0.0"  [hkey_current_user\software\classes\autocad script runner\defaulticon] @="\"<path icon>\\acad_script.ico\""  [hkey_current_user\software\classes\autocad script runner\shell]  [hkey_current_user\software\classes\autocad script runner\shell\open]  [hkey_current_user\software\classes\autocad script runner\shell\open\command] @="\"<path exe>\\autocad script runner.exe\" \"%1\"" 

setup & deployment registry edits

windows registry editor version 5.00  [hkey_current_user\software\classes\.scfg] @="autocad script runner configuration"  [hkey_current_user\software\classes\.scfg\autocad script runner configuration]  [hkey_current_user\software\classes\.scfg\autocad script runner configuration\shellnew]  [hkey_current_user\software\classes\autocad script runner configuration] @="autocad script runner configuration"  [hkey_current_user\software\classes\autocad script runner configuration\defaulticon] @=hex(2):25,00,41,00,50,00,50,00,44,00,41,00,54,00,41,00,25,00,5c,00,4d,00,69,\   00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,49,00,6e,00,73,00,74,00,\   61,00,6c,00,6c,00,65,00,72,00,5c,00,7b,00,33,00,39,00,37,00,38,00,46,00,37,\   00,36,00,45,00,2d,00,30,00,36,00,39,00,46,00,2d,00,34,00,46,00,38,00,30,00,\   2d,00,41,00,33,00,34,00,35,00,2d,00,38,00,41,00,30,00,45,00,37,00,35,00,45,\   00,33,00,38,00,37,00,46,00,35,00,7d,00,5c,00,5f,00,38,00,35,00,33,00,46,00,\   36,00,37,00,44,00,35,00,35,00,34,00,46,00,30,00,35,00,34,00,34,00,39,00,34,\   00,33,00,30,00,45,00,37,00,45,00,2e,00,65,00,78,00,65,00,2c,00,30,00,00,00  [hkey_current_user\software\classes\autocad script runner configuration\shell] @="open"  [hkey_current_user\software\classes\autocad script runner configuration\shell\open] @="&open"  [hkey_current_user\software\classes\autocad script runner configuration\shell\open\command] @="\"c:\\program files (x86)\\durr\\autocad script runner\\autocad script runner.exe\" \"%1\"" "command"=hex(7):40,00,41,00,2a,00,50,00,36,00,48,00,61,00,71,00,56,00,41,00,\   54,00,65,00,36,00,62,00,27,00,54,00,59,00,5e,00,76,00,77,00,3e,00,24,00,52,\   00,4a,00,4e,00,46,00,28,00,59,00,70,00,5d,00,3f,00,68,00,61,00,60,00,34,00,\   2a,00,43,00,40,00,46,00,31,00,21,00,20,00,22,00,25,00,31,00,22,00,00,00,00,\   00 

both of these registry edits act apparently same, cannot true; both structure , values different!

when view these hex strings in regedit.exe, see following 2 values in respective order:

  • %appdata%\microsoft\installer{3978f76e-069f-4f80-a345-8a0e75e387f5}_853f67d554f05449430e7e.exe,0
  • @a*p6haqvate6b'ty^vw>$rjnf(yp]?ha`4*c@f1! "%1"

i'm led believe both of these hex strings (as difference in key-value structure) necessary windows manage installation of application, since see product code embedded first hex string:

{3978f76e-069f-4f80-a345-8a0e75e387f5}

edit: appears hex strings unicode code points regedit.exe values using little-endian byte ordering.

questions

what true difference between these 2 registry edits (manual vs. setup project)?

why structure different , meaning of hex strings?

references

how to: add , delete document types , associated file extensions in file types editor


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -