21 #define _WIN32_MSI 300 41 static UINT (
WINAPI *pMsiSourceListEnumSourcesA)
59 static const char *
msifile =
"msitest.msi";
61 static const char *
mstfile =
"winetest.mst";
63 static const WCHAR msifileW[] = {
'm',
's',
'i',
't',
'e',
's',
't',
'.',
'm',
's',
'i',0};
64 static const WCHAR msifile2W[] = {
'w',
'i',
'n',
'e',
't',
'e',
's',
't',
'2',
'.',
'm',
's',
'i',0};
77 static const CHAR component_dat[] =
"Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" 78 "s72\tS38\ts72\ti2\tS255\tS72\n" 79 "Component\tComponent\n" 80 "Five\t{8CC92E9D-14B2-4CA4-B2AA-B11D02078087}\tNEWDIR\t2\t\tfive.txt\n" 81 "Four\t{FD37B4EA-7209-45C0-8917-535F35A2F080}\tCABOUTDIR\t2\t\tfour.txt\n" 82 "One\t{783B242E-E185-4A56-AF86-C09815EC053C}\tMSITESTDIR\t2\tNOT REINSTALL\tone.txt\n" 83 "Three\t{010B6ADD-B27D-4EDD-9B3D-34C4F7D61684}\tCHANGEDDIR\t2\t\tthree.txt\n" 84 "Two\t{BF03D1A6-20DA-4A65-82F3-6CAC995915CE}\tFIRSTDIR\t2\t\ttwo.txt\n" 85 "dangler\t{6091DF25-EF96-45F1-B8E9-A9B1420C7A3C}\tTARGETDIR\t4\t\tregdata\n" 86 "component\t\tMSITESTDIR\t0\t1\tfile\n" 87 "service_comp\t\tMSITESTDIR\t0\t1\tservice_file";
91 "Directory\tDirectory\n" 92 "CABOUTDIR\tMSITESTDIR\tcabout\n" 93 "CHANGEDDIR\tMSITESTDIR\tchanged:second\n" 94 "FIRSTDIR\tMSITESTDIR\tfirst\n" 95 "MSITESTDIR\tProgramFilesFolder\tmsitest\n" 96 "NEWDIR\tCABOUTDIR\tnew\n" 97 "ProgramFilesFolder\tTARGETDIR\t.\n" 98 "TARGETDIR\t\tSourceDir";
100 static const CHAR feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 101 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 103 "Five\t\tFive\tThe Five Feature\t5\t3\tNEWDIR\t0\n" 104 "Four\t\tFour\tThe Four Feature\t4\t3\tCABOUTDIR\t0\n" 105 "One\t\tOne\tThe One Feature\t1\t3\tMSITESTDIR\t0\n" 106 "Three\t\tThree\tThe Three Feature\t3\t3\tCHANGEDDIR\t0\n" 107 "Two\t\tTwo\tThe Two Feature\t2\t3\tFIRSTDIR\t0\n" 108 "feature\t\t\t\t2\t1\tTARGETDIR\t0\n" 109 "service_feature\t\t\t\t2\t1\tTARGETDIR\t0";
113 "FeatureComponents\tFeature_\tComponent_\n" 119 "feature\tcomponent\n" 120 "service_feature\tservice_comp\n";
122 static const CHAR file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 123 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 125 "five.txt\tFive\tfive.txt\t1000\t\t\t16384\t5\n" 126 "four.txt\tFour\tfour.txt\t1000\t\t\t16384\t4\n" 127 "one.txt\tOne\tone.txt\t1000\t\t\t0\t1\n" 128 "three.txt\tThree\tthree.txt\t1000\t\t\t0\t3\n" 129 "two.txt\tTwo\ttwo.txt\t1000\t\t\t0\t2\n" 130 "file\tcomponent\tfilename\t100\t\t\t8192\t1\n" 131 "service_file\tservice_comp\tservice.exe\t100\t\t\t8192\t1";
135 "InstallExecuteSequence\tAction\n" 136 "AllocateRegistrySpace\tNOT Installed\t1550\n" 137 "CostFinalize\t\t1000\n" 138 "CostInitialize\t\t800\n" 140 "ResolveSource\t\t950\n" 141 "MoveFiles\t\t1700\n" 142 "InstallFiles\t\t4000\n" 143 "DuplicateFiles\t\t4500\n" 144 "WriteEnvironmentStrings\t\t4550\n" 145 "CreateShortcuts\t\t4600\n" 146 "InstallServices\t\t5000\n" 147 "InstallFinalize\t\t6600\n" 148 "InstallInitialize\t\t1500\n" 149 "InstallValidate\t\t1400\n" 150 "LaunchConditions\t\t100\n" 151 "WriteRegistryValues\tSourceDir And SOURCEDIR\t5000";
153 static const CHAR media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 154 "i2\ti4\tL64\tS255\tS32\tS72\n" 156 "1\t3\t\t\tDISK1\t\n" 157 "2\t5\t\tmsitest.cab\tDISK2\t\n";
161 "Property\tProperty\n" 162 "DefaultUIFont\tDlgFont8\n" 165 "InstallMode\tTypical\n" 166 "Manufacturer\tWine\n" 167 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 168 "PRIMARYFOLDER\tTARGETDIR\n" 169 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 171 "ProductLanguage\t1033\n" 172 "ProductName\tMSITEST\n" 173 "ProductVersion\t1.1.1\n" 174 "PROMPTROLLBACKCOST\tP\n" 176 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 177 "AdminProperties\tPOSTADMIN\n" 179 "SERVNAME\tTestService\n" 180 "SERVDISP\tTestServiceDisp\n" 181 "MSIFASTINSTALL\t1\n";
185 "Property\tProperty\n" 186 "DefaultUIFont\tDlgFont8\n" 190 "InstallMode\tTypical\n" 191 "Manufacturer\tWine\n" 192 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 193 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 195 "ProductLanguage\t1033\n" 196 "ProductName\tMSITEST\n" 197 "ProductVersion\t1.1.1\n" 198 "PROMPTROLLBACKCOST\tP\n" 200 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 201 "AdminProperties\tPOSTADMIN\n" 203 "SERVNAME\tTestService\n" 204 "SERVDISP\tTestServiceDisp\n" 205 "MSIFASTINSTALL\t1\n";
209 "Property\tProperty\n" 210 "DefaultUIFont\tDlgFont8\n" 214 "InstallMode\tTypical\n" 215 "Manufacturer\tWine\n" 216 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 217 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 219 "ProductLanguage\t1033\n" 220 "ProductName\tMSITEST\n" 221 "ProductVersion\t1.1.1\n" 222 "PROMPTROLLBACKCOST\tP\n" 224 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 225 "AdminProperties\tPOSTADMIN\n" 227 "SERVNAME\tTestService\n" 228 "SERVDISP\tTestServiceDisp\n" 229 "MSIFASTINSTALL\t1\n";
233 "Property\tProperty\n" 234 "DefaultUIFont\tDlgFont8\n" 237 "InstallMode\tTypical\n" 238 "Manufacturer\tWine\n" 239 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 240 "ProductCode\t{7DF88A49-996F-4EC8-A022-BF956F9B2CBB}\n" 242 "ProductLanguage\t1033\n" 243 "ProductName\tMSITEST\n" 244 "ProductVersion\t1.1.1\n" 245 "PROMPTROLLBACKCOST\tP\n" 247 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 248 "AdminProperties\tPOSTADMIN\n" 250 "SERVNAME\tTestService\n" 251 "SERVDISP\tTestServiceDisp\n" 252 "MSIFASTINSTALL\t1\n";
254 static const CHAR shortcut_dat[] =
"Shortcut\tDirectory_\tName\tComponent_\tTarget\tArguments\tDescription\tHotkey\tIcon_\tIconIndex\tShowCmd\tWkDir\n" 255 "s72\ts72\tl128\ts72\ts72\tS255\tL255\tI2\tS72\tI2\tI2\tS72\n" 256 "Shortcut\tShortcut\n" 257 "Shortcut\tMSITESTDIR\tShortcut\tcomponent\tShortcut\t\tShortcut\t\t\t\t\t\n";
261 "Condition\tFeature_\tLevel\n" 266 "Property\tProperty\n" 267 "DefaultUIFont\tDlgFont8\n" 270 "InstallMode\tTypical\n" 271 "Manufacturer\tWine\n" 272 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 273 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 275 "ProductLanguage\t1033\n" 276 "ProductName\tMSITEST\n" 277 "ProductVersion\t1.1.1\n" 278 "PROMPTROLLBACKCOST\tP\n" 280 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 281 "AdminProperties\tPOSTADMIN\n" 283 "SERVNAME\tTestService\n" 284 "SERVDISP\tTestServiceDisp\n" 285 "RemovePreviousVersions\t1\n" 286 "MSIFASTINSTALL\t1\n";
290 "Property\tProperty\n" 291 "DefaultUIFont\tDlgFont8\n" 294 "InstallMode\tTypical\n" 295 "Manufacturer\tWine\n" 296 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 297 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 299 "ProductLanguage\t1033\n" 300 "ProductName\tMSITEST\n" 301 "ProductVersion\t1.1.2\n" 302 "PROMPTROLLBACKCOST\tP\n" 304 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 305 "AdminProperties\tPOSTADMIN\n" 307 "SERVNAME\tTestService\n" 308 "SERVDISP\tTestServiceDisp\n" 309 "MSIFASTINSTALL\t1\n";
313 "Property\tProperty\n" 314 "DefaultUIFont\tDlgFont8\n" 317 "InstallMode\tTypical\n" 318 "Manufacturer\tWine\n" 319 "PIDTemplate\t12345<###-%%%%%%%>@@@@@\n" 320 "ProductCode\t{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}\n" 322 "ProductLanguage\t1033\n" 323 "ProductName\tMSITEST\n" 324 "ProductVersion\t1.1.2\n" 325 "PROMPTROLLBACKCOST\tP\n" 327 "UpgradeCode\t{4C0EAA15-0264-4E5A-8758-609EF142B92D}\n" 328 "AdminProperties\tPOSTADMIN\n" 330 "SERVNAME\tTestService\n" 331 "SERVDISP\tTestServiceDisp\n" 332 "RemovePreviousVersions\t1\n" 333 "MSIFASTINSTALL\t1\n";
336 "s72\ti2\tl255\tL255\tL0\ts72\n" 337 "Registry\tRegistry\n" 338 "Apples\t1\tSOFTWARE\\Wine\\msitest\tName\timaname\tOne\n" 339 "Oranges\t1\tSOFTWARE\\Wine\\msitest\tnumber\t#314\tTwo\n" 340 "regdata\t1\tSOFTWARE\\Wine\\msitest\tblah\tbad\tdangler\n" 341 "OrderTest\t1\tSOFTWARE\\Wine\\msitest\tOrderTestName\tOrderTestValue\tcomponent";
344 "LoadOrderGroup\tDependencies\tStartName\tPassword\tArguments\tComponent_\tDescription\n" 345 "s72\ts255\tL255\ti4\ti4\ti4\tS255\tS255\tS255\tS255\tS255\ts72\tL255\n" 346 "ServiceInstall\tServiceInstall\n" 347 "TestService\t[SERVNAME]\t[SERVDISP]\t2\t3\t0\t\t\tTestService\t\t\tservice_comp\t\t";
350 "s72\tl255\ti2\tL255\tI2\ts72\n" 351 "ServiceControl\tServiceControl\n" 352 "ServiceControl\tTestService\t8\t\t0\tservice_comp";
356 "s72\tS38\ts72\ti2\tS255\tS72\n" 357 "Component\tComponent\n" 358 "maximus\t\tMSITESTDIR\t0\t1\tmaximus\n" 359 "augustus\t\tMSITESTDIR\t0\t1\taugustus\n" 360 "caesar\t\tMSITESTDIR\t0\t1\tcaesar\n";
363 "s72\tS38\ts72\ti2\tS255\tS72\n" 364 "Component\tComponent\n" 365 "maximus\t\tMSITESTDIR\t0\t1\tmaximus\n" 366 "augustus\t\tMSITESTDIR\t0\t0\taugustus\n" 367 "caesar\t\tMSITESTDIR\t0\t1\tcaesar\n";
369 static const CHAR cc_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 370 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 372 "feature\t\t\t\t2\t1\tTARGETDIR\t0";
376 "FeatureComponents\tFeature_\tComponent_\n" 378 "feature\taugustus\n" 381 static const CHAR cc_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 382 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 384 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1\n" 385 "augustus\taugustus\taugustus\t50000\t\t\t16384\t2\n" 386 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t12";
388 static const CHAR cc2_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 389 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 391 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1\n" 392 "augustus\taugustus\taugustus\t50000\t\t\t16384\t2\n" 393 "tiberius\tmaximus\ttiberius\t500\t\t\t16384\t3\n" 394 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t12";
396 static const CHAR cc_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 397 "i2\ti4\tL64\tS255\tS32\tS72\n" 399 "1\t10\t\ttest1.cab\tDISK1\t\n" 400 "2\t2\t\ttest2.cab\tDISK2\t\n" 401 "3\t12\t\ttest3.cab\tDISK3\t\n";
403 static const CHAR cc3_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 404 "i2\ti4\tL64\tS255\tS32\tS72\n" 406 "1\t10\t\ttest1.cab\tDISK1\t\n" 407 "2\t2\t\ttest2_.cab\tDISK2\t\n" 408 "3\t12\t\ttest3.cab\tDISK3\t\n";
410 static const CHAR co_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 411 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 413 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1\n" 414 "augustus\taugustus\taugustus\t50000\t\t\t16384\t2\n" 415 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t3";
417 static const CHAR co_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 418 "i2\ti4\tL64\tS255\tS32\tS72\n" 420 "1\t10\t\ttest1.cab\tDISK1\t\n" 421 "2\t2\t\ttest2.cab\tDISK2\t\n" 422 "3\t3\t\ttest3.cab\tDISK3\t\n";
424 static const CHAR co2_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 425 "i2\ti4\tL64\tS255\tS32\tS72\n" 427 "1\t10\t\ttest1.cab\tDISK1\t\n" 428 "2\t12\t\ttest3.cab\tDISK3\t\n" 429 "3\t2\t\ttest2.cab\tDISK2\t\n";
431 static const CHAR mm_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 432 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 434 "maximus\tmaximus\tmaximus\t500\t\t\t512\t1\n" 435 "augustus\taugustus\taugustus\t500\t\t\t512\t2\n" 436 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t3";
438 static const CHAR mm_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 439 "i2\ti4\tL64\tS255\tS32\tS72\n" 441 "1\t3\t\ttest1.cab\tDISK1\t\n";
443 static const CHAR ss_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 444 "i2\ti4\tL64\tS255\tS32\tS72\n" 446 "1\t2\t\ttest1.cab\tDISK1\t\n" 447 "2\t2\t\ttest2.cab\tDISK2\t\n" 448 "3\t12\t\ttest3.cab\tDISK3\t\n";
452 "s72\tS38\ts72\ti2\tS255\tS72\n" 453 "Component\tComponent\n" 454 "maximus\t\tMSITESTDIR\t0\tHASUIRUN=1\tmaximus\n" 455 "augustus\t\tMSITESTDIR\t0\t1\taugustus\n" 456 "caesar\t\tMSITESTDIR\t0\t1\tcaesar\n";
460 "InstallUISequence\tAction\n" 461 "SetUIProperty\t\t5\n" 462 "ExecuteAction\t\t1100\n";
465 "s72\ti2\tS64\tS0\tS255\n" 466 "CustomAction\tAction\n" 467 "SetUIProperty\t51\tHASUIRUN\t1\t\n";
470 "s72\tS38\ts72\ti2\tS255\tS72\n" 471 "Component\tComponent\n" 472 "maximus\t\tMSITESTDIR\t0\t1\tmaximus\n";
474 static const CHAR rof_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 475 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 477 "feature\t\tFeature\tFeature\t2\t1\tTARGETDIR\t0\n" 478 "montecristo\t\tFeature\tFeature\t2\t1\tTARGETDIR\t0";
482 "FeatureComponents\tFeature_\tComponent_\n" 484 "montecristo\tmaximus";
486 static const CHAR rof_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 487 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 489 "maximus\tmaximus\tmaximus\t500\t\t\t8192\t1";
491 static const CHAR rof_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 492 "i2\ti4\tL64\tS255\tS32\tS72\n" 494 "1\t1\t\t\tDISK1\t\n";
496 static const CHAR rofc_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 497 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 499 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1";
501 static const CHAR rofc_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 502 "i2\ti4\tL64\tS255\tS32\tS72\n" 504 "1\t1\t\ttest1.cab\tDISK1\t\n";
508 "InstallExecuteSequence\tAction\n" 509 "AllocateRegistrySpace\tNOT Installed\t1550\n" 510 "CostFinalize\t\t1000\n" 511 "CostInitialize\t\t800\n" 513 "InstallFiles\t\t4000\n" 514 "InstallFinalize\t\t6600\n" 515 "InstallInitialize\t\t1500\n" 516 "InstallValidate\t\t1400\n" 517 "LaunchConditions\t\t100\n" 518 "SetDirProperty\t\t950";
521 "s72\ti2\tS64\tS0\tS255\n" 522 "CustomAction\tAction\n" 523 "SetDirProperty\t51\tMSITESTDIR\t[CommonFilesFolder]msitest\\\t\n";
527 "InstallExecuteSequence\tAction\n" 528 "LaunchConditions\t\t100\n" 529 "CostInitialize\t\t800\n" 531 "CostFinalize\t\t1000\n" 532 "InstallValidate\t\t1400\n" 533 "InstallInitialize\t\t1500\n" 534 "InstallFiles\t\t4000\n" 535 "InstallFinalize\t\t6600\n";
538 "s72\tS38\ts72\ti2\tS255\tS72\n" 539 "Component\tComponent\n" 540 "maximus\t\tMSITESTDIR\t0\t1\tmaximus\n" 541 "augustus\t\tMSITESTDIR\t0\t1\taugustus\n" 542 "caesar\t\tMSITESTDIR\t0\t1\tcaesar\n" 543 "gaius\t\tMSITESTDIR\t0\t1\tgaius\n";
547 "FeatureComponents\tFeature_\tComponent_\n" 549 "feature\taugustus\n" 553 static const CHAR cie_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 554 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 556 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1\n" 557 "augustus\taugustus\taugustus\t50000\t\t\t16384\t2\n" 558 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t12\n" 559 "gaius\tgaius\tgaius\t500\t\t\t8192\t11";
561 static const CHAR cie_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 562 "i2\ti4\tL64\tS255\tS32\tS72\n" 564 "1\t1\t\ttest1.cab\tDISK1\t\n" 565 "2\t2\t\ttest2.cab\tDISK2\t\n" 566 "3\t12\t\ttest3.cab\tDISK3\t\n";
569 "s72\tS38\ts72\ti2\tS255\tS72\n" 570 "Component\tComponent\n" 571 "maximus\t{DF2CBABC-3BCC-47E5-A998-448D1C0C895B}\tMSITESTDIR\t0\tUILevel=5\tmaximus\n";
575 "FeatureComponents\tFeature_\tComponent_\n" 578 static const CHAR ci2_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 579 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 581 "augustus\taugustus\taugustus\t500\t\t\t8192\t1";
585 "InstallExecuteSequence\tAction\n" 586 "ValidateProductID\t\t700\n" 587 "CostInitialize\t\t800\n" 589 "CostFinalize\t\t1000\n" 590 "InstallValidate\t\t1400\n" 591 "InstallInitialize\t\t1500\n" 592 "ProcessComponents\tPROCESS_COMPONENTS=1 Or FULL=1\t1600\n" 593 "UnpublishFeatures\tUNPUBLISH_FEATURES=1 Or FULL=1\t1800\n" 594 "RemoveFiles\t\t3500\n" 595 "InstallFiles\t\t4000\n" 596 "RegisterUser\tREGISTER_USER=1 Or FULL=1\t6000\n" 597 "RegisterProduct\tREGISTER_PRODUCT=1 Or FULL=1\t6100\n" 598 "PublishFeatures\tPUBLISH_FEATURES=1 Or FULL=1\t6300\n" 599 "PublishProduct\tPUBLISH_PRODUCT=1 Or FULL=1\t6400\n" 600 "InstallFinalize\t\t6600";
603 "s72\tS38\ts72\ti2\tS255\tS72\n" 604 "Component\tComponent\n" 605 "augustus\t\tMSITESTDIR\t0\tprop=\"val\"\taugustus\n";
608 "s72\tS38\ts72\ti2\tS255\tS72\n" 609 "Component\tComponent\n" 610 "augustus\t\tMSITESTDIR\t0\t\taugustus\n";
613 "s72\tS38\ts72\ti2\tS255\tS72\n" 614 "Component\tComponent\n" 615 "augustus\t\tMSITESTDIR\t0\tPOSTADMIN=1\taugustus";
618 "s72\ti2\tS64\tS0\tS255\n" 619 "CustomAction\tAction\n" 620 "SetPOSTADMIN\t51\tPOSTADMIN\t1\t\n";
624 "AdminExecuteSequence\tAction\n" 625 "CostFinalize\t\t1000\n" 626 "CostInitialize\t\t800\n" 628 "SetPOSTADMIN\t\t950\n" 629 "InstallFiles\t\t4000\n" 630 "InstallFinalize\t\t6600\n" 631 "InstallInitialize\t\t1500\n" 632 "InstallValidate\t\t1400\n" 633 "LaunchConditions\t\t100";
636 "s72\tS38\ts72\ti2\tS255\tS72\n" 637 "Component\tComponent\n" 638 "augustus\t\tMSITESTDIR\t0\tMYPROP=2718 and MyProp=42\taugustus\n";
642 "InstallExecuteSequence\tAction\n" 643 "ValidateProductID\t\t700\n" 644 "CostInitialize\t\t800\n" 646 "CostFinalize\t\t1000\n" 647 "InstallValidate\t\t1400\n" 648 "InstallInitialize\t\t1500\n" 649 "ProcessComponents\t\t1600\n" 650 "UnpublishFeatures\t\t1800\n" 651 "RemoveFiles\t\t3500\n" 652 "InstallFiles\t\t4000\n" 653 "RegisterProduct\t\t6100\n" 654 "PublishFeatures\t\t6300\n" 655 "PublishProduct\t\t6400\n" 656 "InstallFinalize\t\t6600";
659 "s72\tS38\ts72\ti2\tS255\tS72\n" 660 "Component\tComponent\n" 661 "maximus\t\tMSITESTDIR\t0\t1\tmaximus\n" 662 "augustus\t\tMSITESTDIR\t0\t1\taugustus\n" 663 "caesar\t\tMSITESTDIR\t0\t1\tcaesar\n" 664 "gaius\t\tMSITESTDIR\t0\tGAIUS=1\tgaius\n" 665 "tiberius\t\tMSITESTDIR\t0\t\ttiberius\n";
667 static const CHAR mc_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 668 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 670 "maximus\tmaximus\tmaximus\t500\t\t\t16384\t1\n" 671 "augustus\taugustus\taugustus\t500\t\t\t0\t2\n" 672 "caesar\tcaesar\tcaesar\t500\t\t\t16384\t3\n" 673 "gaius\tgaius\tgaius\t500\t\t\t16384\t4\n" 674 "tiberius\ttiberius\ttiberius\t500\t\t\t0\t5\n";
676 static const CHAR mc_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 677 "i2\ti4\tL64\tS255\tS32\tS72\n" 679 "1\t1\t\ttest1.cab\tDISK1\t\n" 680 "2\t2\t\ttest2.cab\tDISK2\t\n" 681 "3\t3\t\ttest3.cab\tDISK3\t\n" 682 "4\t4\t\ttest3.cab\tDISK3\t\n" 683 "5\t5\t\ttest4.cab\tDISK4\t\n";
686 "s72\ti2\ti4\ti4\ti4\ti4\n" 687 "MsiFileHash\tFile_\n" 688 "caesar\t0\t850433704\t-241429251\t675791761\t-1221108824";
691 "s72\tS38\ts72\ti2\tS255\tS72\n" 692 "Component\tComponent\n" 693 "augustus\t\tMSITESTDIR\t0\t\taugustus\n";
697 "InstallExecuteSequence\tAction\n" 698 "maintest\tMAIN_TEST\t700\n" 699 "testretval\tTEST_RETVAL\t710\n";
703 "CustomAction\tAction\n" 704 "maintest\t1\tcustom.dll\tmain_test\n" 705 "testretval\t1\tcustom.dll\ttest_retval\n";
708 "s72\tS38\ts72\ti2\tS255\tS72\n" 709 "Component\tComponent\n" 710 "augustus\t\tMSITESTDIR\t0\tMYPROP=42\taugustus\n";
714 "InstallExecuteSequence\tAction\n" 715 "ValidateProductID\t\t700\n" 716 "GoodSetProperty\t\t725\n" 717 "BadSetProperty\t\t750\n" 718 "CostInitialize\t\t800\n" 719 "ResolveSource\t\t810\n" 721 "SetSourceDir\tSRCDIR\t910\n" 722 "CostFinalize\t\t1000\n" 723 "InstallValidate\t\t1400\n" 724 "InstallInitialize\t\t1500\n" 725 "InstallFiles\t\t4000\n" 726 "InstallFinalize\t\t6600";
730 "CustomAction\tAction\n" 731 "GoodSetProperty\t51\tMYPROP\t42\n" 732 "BadSetProperty\t51\t\tMYPROP\n" 733 "SetSourceDir\t51\tSourceDir\t[SRCDIR]\n";
735 static const CHAR is_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 736 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 738 "one\t\t\t\t2\t1\t\t0\n" 739 "two\t\t\t\t2\t1\t\t1\n" 740 "three\t\t\t\t2\t1\t\t4\n" 741 "four\t\t\t\t2\t0\t\t0";
744 "s72\tS38\ts72\ti2\tS255\tS72\n" 745 "Component\tComponent\n" 746 "alpha\t\tMSITESTDIR\t0\t\talpha_file\n" 747 "beta\t\tMSITESTDIR\t1\t\tbeta_file\n" 748 "gamma\t\tMSITESTDIR\t2\t\tgamma_file\n" 749 "theta\t\tMSITESTDIR\t0\t\ttheta_file\n" 750 "delta\t\tMSITESTDIR\t1\t\tdelta_file\n" 751 "epsilon\t\tMSITESTDIR\t2\t\tepsilon_file\n" 752 "zeta\t\tMSITESTDIR\t0\t\tzeta_file\n" 753 "iota\t\tMSITESTDIR\t1\t\tiota_file\n" 754 "eta\t\tMSITESTDIR\t2\t\teta_file\n" 755 "kappa\t\tMSITESTDIR\t0\t\tkappa_file\n" 756 "lambda\t\tMSITESTDIR\t1\t\tlambda_file\n" 757 "mu\t\tMSITESTDIR\t2\t\tmu_file\n";
761 "FeatureComponents\tFeature_\tComponent_\n" 775 static const CHAR is_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 776 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 778 "alpha_file\talpha\talpha\t500\t\t\t8192\t1\n" 779 "beta_file\tbeta\tbeta\t500\t\t\t8291\t2\n" 780 "gamma_file\tgamma\tgamma\t500\t\t\t8192\t3\n" 781 "theta_file\ttheta\ttheta\t500\t\t\t8192\t4\n" 782 "delta_file\tdelta\tdelta\t500\t\t\t8192\t5\n" 783 "epsilon_file\tepsilon\tepsilon\t500\t\t\t8192\t6\n" 784 "zeta_file\tzeta\tzeta\t500\t\t\t8192\t7\n" 785 "iota_file\tiota\tiota\t500\t\t\t8192\t8\n" 786 "eta_file\teta\teta\t500\t\t\t8192\t9\n" 787 "kappa_file\tkappa\tkappa\t500\t\t\t8192\t10\n" 788 "lambda_file\tlambda\tlambda\t500\t\t\t8192\t11\n" 789 "mu_file\tmu\tmu\t500\t\t\t8192\t12";
791 static const CHAR is_media_dat[] =
"DiskId\tLastSequence\tDiskPrompt\tCabinet\tVolumeLabel\tSource\n" 792 "i2\ti4\tL64\tS255\tS32\tS72\n" 794 "1\t12\t\t\tDISK1\t\n";
797 "s72\tS38\ts72\ti2\tS255\tS72\n" 798 "Component\tComponent\n" 799 "augustus\t\tTWODIR\t0\t\taugustus\n";
803 "Directory\tDirectory\n" 804 "TARGETDIR\t\tSourceDir\n" 805 "ProgramFilesFolder\tTARGETDIR\t.\n" 806 "MSITESTDIR\tProgramFilesFolder\tmsitest:.\n" 807 "ONEDIR\tMSITESTDIR\t.:shortone|longone\n" 808 "TWODIR\tONEDIR\t.:shorttwo|longtwo";
811 "s72\tS38\ts72\ti2\tS255\tS72\n" 812 "Component\tComponent\n" 813 "hydrogen\t{C844BD1E-1907-4C00-8BC9-150BD70DF0A1}\tMSITESTDIR\t2\t\thydrogen\n" 814 "helium\t{5AD3C142-CEF8-490D-B569-784D80670685}\tMSITESTDIR\t2\t\thelium\n" 815 "lithium\t{4AF28FFC-71C7-4307-BDE4-B77C5338F56F}\tMSITESTDIR\t2\tPROPVAR=42\tlithium\n";
817 static const CHAR mcp_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 818 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 820 "hydroxyl\t\thydroxyl\thydroxyl\t2\t1\tTARGETDIR\t0\n" 821 "heliox\t\theliox\theliox\t2\t5\tTARGETDIR\t0\n" 822 "lithia\t\tlithia\tlithia\t2\t10\tTARGETDIR\t0";
826 "FeatureComponents\tFeature_\tComponent_\n" 827 "hydroxyl\thydrogen\n" 831 static const CHAR mcp_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 832 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 834 "hydrogen\thydrogen\thydrogen\t0\t\t\t8192\t1\n" 835 "helium\thelium\thelium\t0\t\t\t8192\t1\n" 836 "lithium\tlithium\tlithium\t0\t\t\t8192\t1\n" 837 "beryllium\tmissingcomp\tberyllium\t0\t\t\t8192\t1";
839 static const CHAR ai_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 840 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 842 "five.txt\tFive\tfive.txt\t1000\t\t\t16384\t5\n" 843 "four.txt\tFour\tfour.txt\t1000\t\t\t16384\t4\n" 844 "one.txt\tOne\tone.txt\t1000\t\t\t16384\t1\n" 845 "three.txt\tThree\tthree.txt\t1000\t\t\t16384\t3\n" 846 "two.txt\tTwo\ttwo.txt\t1000\t\t\t16384\t2\n" 847 "file\tcomponent\tfilename\t100\t\t\t8192\t1\n" 848 "service_file\tservice_comp\tservice.exe\t100\t\t\t8192\t1";
852 "InstallExecuteSequence\tAction\n" 853 "CostFinalize\t\t1000\n" 854 "ValidateProductID\t\t700\n" 855 "CostInitialize\t\t800\n" 857 "RemoveFiles\t\t3500\n" 858 "InstallFiles\t\t4000\n" 859 "RegisterUser\t\t6000\n" 860 "RegisterProduct\t\t6100\n" 861 "PublishFeatures\t\t6300\n" 862 "PublishProduct\t\t6400\n" 863 "InstallFinalize\t\t6600\n" 864 "InstallInitialize\t\t1500\n" 865 "ProcessComponents\t\t1600\n" 866 "UnpublishFeatures\t\t1800\n" 867 "InstallValidate\t\t1400\n" 868 "LaunchConditions\t\t100\n" 869 "TestInstalledProp\tInstalled AND NOT REMOVE\t950\n";
872 "s72\ti2\tS64\tS0\tS255\n" 873 "CustomAction\tAction\n" 874 "TestInstalledProp\t19\t\tTest failed\t\n";
878 "InstallExecuteSequence\tAction\n" 879 "CostFinalize\t\t1000\n" 880 "ValidateProductID\t\t700\n" 881 "CostInitialize\t\t800\n" 883 "RemoveFiles\t\t3500\n" 884 "InstallFiles\t\t4000\n" 885 "RegisterUser\t\t6000\n" 886 "RegisterProduct\t\t6100\n" 887 "PublishFeatures\t\t6300\n" 888 "PublishProduct\t\t6400\n" 889 "InstallFinalize\t\t6600\n" 890 "InstallInitialize\t\t1500\n" 891 "ProcessComponents\t\t1600\n" 892 "UnpublishFeatures\t\t1800\n" 893 "InstallValidate\t\t1400\n" 894 "LaunchConditions\t\t100\n" 895 "TestAllUsersProp\tALLUSERS AND NOT REMOVE\t50\n";
899 "InstallExecuteSequence\tAction\n" 900 "CostFinalize\t\t1000\n" 901 "ValidateProductID\t\t700\n" 902 "CostInitialize\t\t800\n" 904 "RemoveFiles\t\t3500\n" 905 "InstallFiles\t\t4000\n" 906 "RegisterUser\t\t6000\n" 907 "RegisterProduct\t\t6100\n" 908 "PublishFeatures\t\t6300\n" 909 "PublishProduct\t\t6400\n" 910 "InstallFinalize\t\t6600\n" 911 "InstallInitialize\t\t1500\n" 912 "ProcessComponents\t\t1600\n" 913 "UnpublishFeatures\t\t1800\n" 914 "InstallValidate\t\t1400\n" 915 "LaunchConditions\t\t100\n" 916 "TestAllUsersProp\tALLUSERS=2 AND NOT REMOVE\t50\n";
920 "InstallExecuteSequence\tAction\n" 921 "CostFinalize\t\t1000\n" 922 "ValidateProductID\t\t700\n" 923 "CostInitialize\t\t800\n" 925 "RemoveFiles\t\t3500\n" 926 "InstallFiles\t\t4000\n" 927 "RegisterUser\t\t6000\n" 928 "RegisterProduct\t\t6100\n" 929 "PublishFeatures\t\t6300\n" 930 "PublishProduct\t\t6400\n" 931 "InstallFinalize\t\t6600\n" 932 "InstallInitialize\t\t1500\n" 933 "ProcessComponents\t\t1600\n" 934 "UnpublishFeatures\t\t1800\n" 935 "InstallValidate\t\t1400\n" 936 "LaunchConditions\t\t100\n" 937 "TestAllUsersProp\tALLUSERS=1 AND NOT REMOVE\t50\n";
940 "s72\ti2\tS64\tS0\tS255\n" 941 "CustomAction\tAction\n" 942 "TestAllUsersProp\t19\t\tTest failed\t\n";
944 static const CHAR fo_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 945 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 947 "override.txt\toverride\toverride.txt\t1000\t\t\t8192\t1\n" 948 "preselected.txt\tpreselected\tpreselected.txt\t1000\t\t\t8192\t2\n" 949 "notpreselected.txt\tnotpreselected\tnotpreselected.txt\t1000\t\t\t8192\t3\n";
951 static const CHAR fo_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 952 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 954 "override\t\t\toverride feature\t1\t1\tMSITESTDIR\t0\n" 955 "preselected\t\t\tpreselected feature\t1\t1\tMSITESTDIR\t0\n" 956 "notpreselected\t\t\tnotpreselected feature\t1\t1\tMSITESTDIR\t0\n";
960 "Condition\tFeature_\tLevel\n" 961 "preselected\t0\tPreselected\n" 962 "notpreselected\t0\tNOT Preselected\n";
966 "FeatureComponents\tFeature_\tComponent_\n" 967 "override\toverride\n" 968 "preselected\tpreselected\n" 969 "notpreselected\tnotpreselected\n";
972 "s72\tS38\ts72\ti2\tS255\tS72\n" 973 "Component\tComponent\n" 974 "override\t{0A00FB1D-97B0-4B42-ADF0-BB8913416623}\tMSITESTDIR\t0\t\toverride.txt\n" 975 "preselected\t{44E1DB75-605A-43DD-8CF5-CAB17F1BBD60}\tMSITESTDIR\t0\t\tpreselected.txt\n" 976 "notpreselected\t{E1647733-5E75-400A-A92E-5E60B4D4EF9F}\tMSITESTDIR\t0\t\tnotpreselected.txt\n";
979 "s72\ti2\tS64\tS0\tS255\n" 980 "CustomAction\tAction\n" 981 "SetPreselected\t51\tPreselected\t1\t\n";
985 "InstallExecuteSequence\tAction\n" 986 "LaunchConditions\t\t100\n" 987 "SetPreselected\tpreselect=1\t200\n" 988 "CostInitialize\t\t800\n" 990 "CostFinalize\t\t1000\n" 991 "InstallValidate\t\t1400\n" 992 "InstallInitialize\t\t1500\n" 993 "ProcessComponents\t\t1600\n" 994 "RemoveFiles\t\t1700\n" 995 "InstallFiles\t\t2000\n" 996 "RegisterProduct\t\t5000\n" 997 "PublishFeatures\t\t5100\n" 998 "PublishProduct\t\t5200\n" 999 "InstallFinalize\t\t6000\n";
1001 static const CHAR uc_file_dat[] =
"File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 1002 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 1004 "upgradecode.txt\tupgradecode\tupgradecode.txt\t1000\t\t\t8192\t1\n";
1006 static const CHAR uc_feature_dat[] =
"Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 1007 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 1008 "Feature\tFeature\n" 1009 "upgradecode\t\t\tupgradecode feature\t1\t2\tMSITESTDIR\t0\n";
1013 "FeatureComponents\tFeature_\tComponent_\n" 1014 "upgradecode\tupgradecode\n";
1017 "s72\tS38\ts72\ti2\tS255\tS72\n" 1018 "Component\tComponent\n" 1019 "upgradecode\t{6952B732-2FCB-4E47-976F-989FCBD7EDFB}\tMSITESTDIR\t0\t\tupgradecode.txt\n";
1023 "Property\tProperty\n" 1025 "ProductCode\t{E5FB1241-F547-4BA7-A60E-8E75797268D4}\n" 1026 "ProductName\tMSITEST\n" 1027 "ProductVersion\t1.1.1\n" 1028 "UpgradeCode\t#UPGEADECODE#\n" 1029 "MSIFASTINSTALL\t1\n";
1033 "InstallExecuteSequence\tAction\n" 1034 "LaunchConditions\t\t100\n" 1035 "CostInitialize\t\t200\n" 1037 "CostFinalize\t\t400\n" 1038 "InstallInitialize\t\t500\n" 1039 "ProcessComponents\t\t600\n" 1040 "InstallValidate\t\t700\n" 1041 "RemoveFiles\t\t800\n" 1042 "InstallFiles\t\t900\n" 1043 "RegisterProduct\t\t1000\n" 1044 "PublishFeatures\t\t1100\n" 1045 "PublishProduct\t\t1200\n" 1046 "InstallFinalize\t\t1300\n";
1049 "Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 1050 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 1051 "Feature\tFeature\n" 1052 "feature1\t\t\t\t1\t2\tMSITESTDIR\t0\n" 1053 "feature2\t\t\t\t1\t2\tMSITESTDIR\t0\n";
1056 "Feature_\tComponent_\n" 1058 "FeatureComponents\tFeature_\tComponent_\n" 1060 "feature2\tcomp2\n";
1063 "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" 1064 "s72\tS38\ts72\ti2\tS255\tS72\n" 1065 "Component\tComponent\n" 1066 "comp1\t{DE9F0EF4-0ED3-495A-8105-060C0EA457B8}\tTARGETDIR\t4\t\tregdata1\n" 1067 "comp2\t{4912DBE7-FC3A-4F91-BB5C-88F5C15C19A5}\tTARGETDIR\t260\t\tregdata2\n";
1070 "Registry\tRoot\tKey\tName\tValue\tComponent_\n" 1071 "s72\ti2\tl255\tL255\tL0\ts72\n" 1072 "Registry\tRegistry\n" 1073 "regdata1\t2\tSOFTWARE\\Wine\\msitest\ttest1\t\tcomp1\n" 1074 "regdata2\t2\tSOFTWARE\\Wine\\msitest\ttest2\t\tcomp2\n" 1075 "regdata3\t0\tCLSID\\{8dfef911-6885-41eb-b280-8f0304728e8b}\t\tCLSID_Winetest32\tcomp1\n" 1076 "regdata4\t0\tCLSID\\{8dfef911-6885-41eb-b280-8f0304728e8b}\\InProcServer32\t\twinetest32.dll\tcomp1\n" 1077 "regdata5\t0\tCLSID\\{8dfef911-6885-41eb-b280-8f0304728e8b}\t\tCLSID_Winetest64\tcomp2\n" 1078 "regdata6\t0\tCLSID\\{8dfef911-6885-41eb-b280-8f0304728e8b}\\InProcServer32\t\twinetest64.dll\tcomp2\n";
1081 "Action\tCondition\tSequence\n" 1083 "InstallExecuteSequence\tAction\n" 1084 "LaunchConditions\t\t100\n" 1085 "CostInitialize\t\t200\n" 1087 "CostFinalize\t\t400\n" 1088 "InstallValidate\t\t500\n" 1089 "InstallInitialize\t\t600\n" 1090 "ProcessComponents\t\t700\n" 1091 "UnpublishFeatures\t\t800\n" 1092 "RemoveRegistryValues\t\t900\n" 1093 "WriteRegistryValues\t\t1000\n" 1094 "RegisterProduct\t\t1100\n" 1095 "PublishFeatures\t\t1200\n" 1096 "PublishProduct\t\t1300\n" 1097 "InstallFinalize\t\t1400\n";
1100 "File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 1101 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 1103 "volumeprop\tcomp\tvolumeprop.txt\t1000\t\t\t8192\t1\n";
1106 "Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 1107 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 1108 "Feature\tFeature\n" 1109 "feature\t\t\t\t1\t2\tMSITESTDIR\t0\n";
1112 "Feature_\tComponent_\n" 1114 "FeatureComponents\tFeature_\tComponent_\n" 1118 "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" 1119 "s72\tS38\ts72\ti2\tS255\tS72\n" 1120 "Component\tComponent\n" 1121 "comp\t{24364AE7-5B7F-496C-AF5A-54893639C567}\tMSITESTDIR\t0\t\tvolumeprop\n";
1124 "Action\tType\tSource\tTarget\tISComments\n" 1125 "s72\ti2\tS64\tS0\tS255\n" 1126 "CustomAction\tAction\n" 1127 "TestPrimaryVolumePath0\t19\t\tPrimaryVolumePath set before CostFinalize\t\n" 1128 "TestPrimaryVolumeSpaceAvailable0\t19\t\tPrimaryVolumeSpaceAvailable set before CostFinalize\t\n" 1129 "TestPrimaryVolumeSpaceRequired0\t19\t\tPrimaryVolumeSpaceRequired set before CostFinalize\t\n" 1130 "TestPrimaryVolumeSpaceRemaining0\t19\t\tPrimaryVolumeSpaceRemaining set before CostFinalize\t\n" 1131 "TestPrimaryVolumePath1\t19\t\tPrimaryVolumePath set before InstallValidate\t\n" 1132 "TestPrimaryVolumeSpaceAvailable1\t19\t\tPrimaryVolumeSpaceAvailable not set before InstallValidate\t\n" 1133 "TestPrimaryVolumeSpaceRequired1\t19\t\tPrimaryVolumeSpaceRequired not set before InstallValidate\t\n" 1134 "TestPrimaryVolumeSpaceRemaining1\t19\t\tPrimaryVolumeSpaceRemaining not set before InstallValidate\t\n" 1135 "TestPrimaryVolumePath2\t19\t\tPrimaryVolumePath not set after InstallValidate\t\n" 1136 "TestPrimaryVolumeSpaceAvailable2\t19\t\tPrimaryVolumeSpaceAvailable not set after InstallValidate\t\n" 1137 "TestPrimaryVolumeSpaceRequired2\t19\t\tPrimaryVolumeSpaceRequired not set after InstallValidate\t\n" 1138 "TestPrimaryVolumeSpaceRemaining2\t19\t\tPrimaryVolumeSpaceRemaining not set after InstallValidate\t\n";
1141 "Action\tCondition\tSequence\n" 1143 "InstallExecuteSequence\tAction\n" 1144 "LaunchConditions\t\t100\n" 1145 "CostInitialize\t\t200\n" 1147 "TestPrimaryVolumePath0\tPrimaryVolumePath AND NOT REMOVE\t400\n" 1148 "TestPrimaryVolumeSpaceAvailable0\tPrimaryVolumeSpaceAvailable AND NOT REMOVE\t500\n" 1149 "TestPrimaryVolumeSpaceRequired0\tPrimaryVolumeSpaceRequired AND NOT REMOVE\t510\n" 1150 "TestPrimaryVolumeSpaceRemaining0\tPrimaryVolumeSpaceRemaining AND NOT REMOVE\t520\n" 1151 "CostFinalize\t\t600\n" 1152 "TestPrimaryVolumePath1\tPrimaryVolumePath AND NOT REMOVE\t600\n" 1153 "TestPrimaryVolumeSpaceAvailable1\tNOT PrimaryVolumeSpaceAvailable AND NOT REMOVE\t800\n" 1154 "TestPrimaryVolumeSpaceRequired1\tNOT PrimaryVolumeSpaceRequired AND NOT REMOVE\t810\n" 1155 "TestPrimaryVolumeSpaceRemaining1\tNOT PrimaryVolumeSpaceRemaining AND NOT REMOVE\t820\n" 1156 "InstallValidate\t\t900\n" 1157 "TestPrimaryVolumePath2\tNOT PrimaryVolumePath AND NOT REMOVE\t1000\n" 1158 "TestPrimaryVolumeSpaceAvailable2\tNOT PrimaryVolumeSpaceAvailable AND NOT REMOVE\t1100\n" 1159 "TestPrimaryVolumeSpaceRequired2\tNOT PrimaryVolumeSpaceRequired AND NOT REMOVE\t1110\n" 1160 "TestPrimaryVolumeSpaceRemaining2\tNOT PrimaryVolumeSpaceRemaining AND NOT REMOVE\t1120\n" 1161 "InstallInitialize\t\t1200\n" 1162 "ProcessComponents\t\t1300\n" 1163 "RemoveFiles\t\t1400\n" 1164 "InstallFiles\t\t1500\n" 1165 "RegisterProduct\t\t1600\n" 1166 "PublishFeatures\t\t1700\n" 1167 "PublishProduct\t\t1800\n" 1168 "InstallFinalize\t\t1900\n";
1173 "Property\tProperty\n" 1175 "ProductCode\t{5CD99CD0-69C7-409B-9905-82DD743CC840}\n" 1176 "ProductName\tMSITEST\n" 1177 "ProductVersion\t1.1.1\n" 1178 "MSIFASTINSTALL\t1\n";
1183 "Property\tProperty\n" 1185 "ProductCode\t{4CEFADE5-DAFB-4C21-8EF2-4ED4F139F340}\n" 1186 "ProductName\tMSITEST2\n" 1187 "ProductVersion\t1.1.1\n" 1188 "MSIFASTINSTALL\t1\n";
1191 "File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 1192 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 1194 "sharedcomponent\tsharedcomponent\tsharedcomponent.txt\t1000\t\t\t8192\t1\n";
1197 "Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 1198 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 1199 "Feature\tFeature\n" 1200 "feature\t\t\t\t1\t2\tMSITESTDIR\t0\n";
1203 "Feature_\tComponent_\n" 1205 "FeatureComponents\tFeature_\tComponent_\n" 1206 "feature\tsharedcomponent\n";
1209 "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" 1210 "s72\tS38\ts72\ti2\tS255\tS72\n" 1211 "Component\tComponent\n" 1212 "sharedcomponent\t{900A4ACB-DC6F-4795-A04B-81B530183D41}\tMSITESTDIR\t0\t\tsharedcomponent\n";
1215 "Action\tType\tSource\tTarget\tISComments\n" 1216 "s72\ti2\tS64\tS0\tS255\n" 1217 "CustomAction\tAction\n" 1218 "TestComponentAction\t19\t\twrong component action on install\t\n";
1221 "Action\tCondition\tSequence\n" 1223 "InstallExecuteSequence\tAction\n" 1224 "LaunchConditions\t\t100\n" 1225 "CostInitialize\t\t200\n" 1227 "CostFinalize\t\t600\n" 1228 "InstallValidate\t\t900\n" 1229 "InstallInitialize\t\t1200\n" 1230 "ProcessComponents\t\t1300\n" 1231 "RemoveFiles\t\t1400\n" 1232 "InstallFiles\t\t1500\n" 1233 "TestComponentAction\tNOT REMOVE AND ($sharedcomponent <> 3)\t1600\n" 1234 "RegisterProduct\t\t1700\n" 1235 "PublishFeatures\t\t1800\n" 1236 "PublishProduct\t\t1900\n" 1237 "InstallFinalize\t\t2000\n";
1240 "File\tComponent_\tFileName\tFileSize\tVersion\tLanguage\tAttributes\tSequence\n" 1241 "s72\ts72\tl255\ti4\tS72\tS20\tI2\ti2\n" 1243 "featuretree\tcomp\tfeaturetree.txt\t1000\t\t\t8192\t1\n";
1246 "Component\tComponentId\tDirectory_\tAttributes\tCondition\tKeyPath\n" 1247 "s72\tS38\ts72\ti2\tS255\tS72\n" 1248 "Component\tComponent\n" 1249 "comp\t{12345678-1234-1234-1234-222222222222}\tTARGETDIR\t0\t\t\n" 1250 "comp2\t{12345678-1234-1234-1234-333333333333}\tTARGETDIR\t0\t\tfeaturetree\n";
1253 "Feature\tFeature_Parent\tTitle\tDescription\tDisplay\tLevel\tDirectory_\tAttributes\n" 1254 "s38\tS38\tL64\tL255\tI2\ti2\tS72\ti2\n" 1255 "Feature\tFeature\n" 1256 "A\t\t\t\t2\t1\t\t0\n" 1257 "C\tB\t\t\t2\t1\t\t0\n" 1258 "B\tA\t\t\t4\t1\t\t0\n" 1259 "D\t\t\t\t2\t1\t\t0\n";
1262 "Feature_\tComponent_\n" 1264 "FeatureComponents\tFeature_\tComponent_\n" 1269 "Feature_\tLevel\tCondition\n" 1271 "Condition\tFeature_\tLevel\n" 1272 "A\t0\t\"0\"<>INSTALLTYPE\n";
1275 "Action\tType\tSource\tTarget\tISComments\n" 1276 "s72\ti2\tS64\tS0\tS255\n" 1277 "CustomAction\tAction\n" 1278 "Run A\t19\t\tA\t\n" 1279 "Run B\t19\t\tB\t\n" 1280 "Run C\t19\t\tC\t\n";
1283 "Action\tCondition\tSequence\n" 1285 "InstallExecuteSequence\tAction\n" 1286 "CostInitialize\t\t100\n" 1288 "CostFinalize\t\t300\n" 1289 "InstallValidate\t\t400\n" 1290 "InstallInitialize\t\t500\n" 1291 "Run C\t3 = &C AND NOT Installed\t600\n" 1292 "Run B\t3 = &B AND NOT Installed\t700\n" 1293 "Run A\t3 = &A AND NOT Installed\t800\n" 1294 "ProcessComponents\t\t900\n" 1295 "RemoveFiles\t\t1000\n" 1296 "InstallFiles\t\t1100\n" 1297 "RegisterProduct\t\t1200\n" 1298 "PublishFeatures\t\t1300\n" 1299 "PublishProduct\t\t1400\n" 1300 "InstallFinalize\t\t1500\n";
1303 "Action\tType\tSource\tTarget\n" 1304 "s72\ti2\tS64\tS0\n" 1305 "CustomAction\tAction\n" 1306 "setprop\t51\tdeferred\t[TESTPATH]\n" 1307 "immediate\t1\tcustom.dll\tda_immediate\n" 1308 "deferred\t1025\tcustom.dll\tda_deferred\n";
1311 "Action\tCondition\tSequence\n" 1313 "InstallExecuteSequence\tAction\n" 1314 "CostInitialize\t\t200\n" 1316 "CostFinalize\t\t400\n" 1317 "InstallInitialize\t\t500\n" 1320 "immediate\t\t800\n" 1321 "InstallFinalize\t\t1100\n";
1330 #define ADD_TABLE(x) {#x".idt", x##_dat, sizeof(x##_dat)} 2000 #define MEDIA_SIZE 0x7FFFFFFF 2001 #define FOLDER_THRESHOLD 900000 2027 BOOL fContinuation,
void *pv)
2036 DWORD dwShareMode = 0;
2049 dwCreateDisposition, 0,
NULL);
2063 ok(
res,
"Failed to ReadFile\n");
2075 ok(
res,
"Failed to WriteFile\n");
2102 ok(
ret,
"Failed to DeleteFile %s\n", pszFile);
2113 #define GET_PROC(mod, func) \ 2114 p ## func = (void*)GetProcAddress(mod, #func); \ 2116 trace("GetProcAddress(%s) failed\n", #func); 2142 if (!pCheckTokenMembership || !pOpenProcessToken)
return FALSE;
2146 !pCheckTokenMembership(
NULL,
Group, &IsInGroup))
2148 trace(
"Could not check if the current user is an administrator\n");
2191 if (tempname && (
strlen(tempname) < (
unsigned)cbTempName))
2218 ok(
res,
"Expected GetFileInformationByHandle to succeed\n");
2250 pCabParams->
setID = 0xbeef;
2251 pCabParams->
iCab = 1;
2271 ok(hfci !=
NULL,
"Failed to create an FCI context\n");
2277 ok(
res,
"Failed to add file: %s\n",
ptr);
2282 ok(
res,
"Failed to flush the cabinet\n");
2285 ok(
res,
"Failed to destroy the cabinet\n");
2294 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", &hkey))
2363 #define create_file(name, size) create_file_data(name, name, size) 2466 ok(
delete_pf(
"msitest\\cabout\\new\\five.txt",
TRUE),
"File not installed\n");
2468 ok(
delete_pf(
"msitest\\cabout\\four.txt",
TRUE),
"File not installed\n");
2470 ok(
delete_pf(
"msitest\\changed\\three.txt",
TRUE),
"File not installed\n");
2472 ok(
delete_pf(
"msitest\\first\\two.txt",
TRUE),
"File not installed\n");
2491 const char *
template,
const char *packagecode)
2521 #define create_database(name, tables, num_tables) \ 2522 create_database_wordcount(name, tables, num_tables, 100, 0, ";1033", \ 2523 "{004757CA-5092-49C2-AD20-28E1CE0DF5F2}"); 2525 #define create_database_template(name, tables, num_tables, version, template) \ 2526 create_database_wordcount(name, tables, num_tables, version, 0, template, \ 2527 "{004757CA-5092-49C2-AD20-28E1CE0DF5F2}"); 2531 const char *
template,
const char *packagecode)
2546 for (
j = 0;
j < num_tables;
j++)
2569 SC_HANDLE scm, service;
2573 ok(scm !=
NULL,
"Failed to open the SC Manager\n");
2576 ok(service !=
NULL,
"Failed to open TestService\n");
2579 ok(
res,
"Failed to delete TestService\n");
2594 return pSRSetRestorePointA(&spec,
status);
2601 res = pSRRemoveRestorePoint(seq_number);
2603 trace(
"Failed to remove the restore point : %08x\n",
res);
2608 if (pRegDeleteKeyExA)
2609 return pRegDeleteKeyExA(
key, subkey,
access, 0 );
2627 ok(
res != 0,
"couldn't find resource\n" );
2647 skip(
"process is limited\n");
2659 "Expected ERROR_INVALID_PARAMETER, got %d\n",
r);
2664 "Expected ERROR_INVALID_PARAMETER, got %d\n",
r);
2669 "Expected ERROR_PATH_NOT_FOUND, got %d\n",
r);
2678 skip(
"Not enough rights to perform tests\n");
2703 ok(
num == 314,
"Expected 314, got %d\n",
num);
2844 skip(
"Not enough rights to perform tests\n");
2893 query =
"SELECT * FROM `Media`";
2902 ok(
check_record(rec, 2,
"LastSequence"),
"wrong column label\n");
2933 static CHAR cab_context[] =
"test%d.cab";
2946 ok(hfci !=
NULL,
"Failed to create an FCI context\n");
2949 ok(
res,
"Failed to add file maximus\n");
2952 ok(
res,
"Failed to add file augustus\n");
2955 ok(
res,
"Failed to add file tiberius\n");
2958 ok(
res,
"Failed to flush the cabinet\n");
2961 ok(
res,
"Failed to destroy the cabinet\n");
2995 skip(
"process is limited\n");
3007 skip(
"Not enough rights to perform tests\n");
3030 skip(
"Not enough rights to perform tests\n");
3056 skip(
"Not enough rights to perform tests\n");
3072 ok(
MoveFileA(
"test2.cab",
"test2_.cab"),
"Cannot rename test2.cab to test2_.cab\n");
3080 skip(
"Not enough rights to perform tests\n");
3116 skip(
"Not enough rights to perform tests\n");
3188 skip(
"process is limited\n");
3206 skip(
"Not enough rights to perform tests\n");
3273 ok(!
delete_pf(
"msitest\\maximus",
TRUE),
"UI install occurred, but execute-only was requested.\n");
3308 skip(
"process is limited\n");
3332 skip(
"Not enough rights to perform tests\n");
3357 skip(
"process is limited\n");
3384 skip(
"Not enough rights to perform tests\n");
3396 ok(!
memcmp(
buf,
"maximus",
sizeof(
"maximus")-1 ),
"Expected file to be overwritten, got '%s'\n",
buf);
3414 skip(
"process is limited\n");
3427 skip(
"Not enough rights to perform tests\n");
3447 skip(
"process is limited\n");
3468 skip(
"Not enough rights to perform tests\n");
3556 "{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}1.1.1;" 3557 "{7DF88A48-996F-4EC8-A022-BF956F9B2CBB}1.1.1;" 3558 "{4C0EAA15-0264-4E5A-8758-609EF142B92D}");
3589 query =
"INSERT INTO `Property` ( `Property`, `Value` ) VALUES ( 'prop', 'val' )";
3609 static const WCHAR name1[] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0 };
3610 static const WCHAR name2[] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0 };
3611 static const WCHAR name3[] = { 0x4840, 0x4559, 0x44f2, 0x4568, 0x4737, 0 };
3625 0x0201, 0x0001, 0x0002,
3628 static const struct {
3639 #define NUM_TRANSFORM_TABLES (sizeof table_transform_data/sizeof table_transform_data[0]) 3650 const CLSID CLSID_MsiTransform = { 0xc1082,0,0,{0xc0,0,0,0,0,0,0,0x46}};
3655 ok(
r ==
S_OK,
"failed to create storage\n");
3659 r = IStorage_SetClass(stg, &CLSID_MsiTransform);
3660 ok(
r ==
S_OK,
"failed to set storage type\n");
3668 ok(0,
"failed to create stream %08x\n",
r);
3675 ok(0,
"failed to write stream\n");
3676 IStream_Release(stm);
3679 IStorage_Release(stg);
3690 skip(
"process is limited\n");
3704 skip(
"Not enough rights to perform tests\n");
3738 skip(
"process is limited\n");
3765 skip(
"Not enough rights to perform tests\n");
3837 skip(
"Not enough rights to perform tests\n");
3843 ok(!
DeleteFileA(
"c:\\msitest\\augustus"),
"File installed\n");
3853 ok(
DeleteFileA(
"c:\\msitest\\augustus"),
"File not installed\n");
3873 static const WCHAR stmname[] = {0x41ca,0x4330,0x3e71,0x44b5,0x4233,0x45f5,0x422c,0x4836,0};
3874 static const WCHAR data[] = {
'M',
'Y',
'P',
'R',
'O',
'P',
'=',
'2',
'7',
'1',
'8',
' ',
3875 'M',
'y',
'P',
'r',
'o',
'p',
'=',
'4',
'2',0};
3880 ok(
hr ==
S_OK,
"Expected S_OK, got %d\n",
hr);
3885 ok(
hr ==
S_OK,
"Expected S_OK, got %d\n",
hr);
3888 ok(
hr ==
S_OK,
"Expected S_OK, got %d\n",
hr);
3890 IStream_Release(stm);
3891 IStorage_Release(stg);
3900 skip(
"process is limited\n");
3916 skip(
"Not enough rights to perform tests\n");
3943 #define create_pf(file, is_file) create_pf_data(file, file, is_file)