1Document Type: WSE 2item: Global 3 Version=8.14 4 Flags=00000100 5 Split=1420 6 Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 Copy Default=1 8 Japanese Font Name=MS Gothic 9 Japanese Font Size=10 10 Start Gradient=0 0 255 11 End Gradient=0 0 0 12 Windows Flags=00000000000000000000101000001000 13 Message Font=MS Sans Serif 14 Font Size=8 15 Disk Label=GLBS 16 Disk Filename=INSTALL 17 Patch Flags=0000000000000001 18 Patch Threshold=200 19 Patch Memory=4096 20 Per-User Version ID=1 21 Crystal Format=10111100101100000010001001001001 22 Step View=&Properties 23end 24item: Remark 25 Text=Note from Tim: This is a verbatim copy of Wise's Uninstal.wse, altered at the end to write 26end 27item: Remark 28 Text=uninstall info under HKCU instead of HKLM if our DOADMIN var is false. 29end 30item: Remark 31end 32item: Remark 33 Text= Install Support for uninstalling the application. 34end 35item: Remark 36end 37item: Set Variable 38 Variable=UNINSTALL_PATH 39 Value=%_LOGFILE_PATH_% 40 Flags=00000010 41end 42item: Set Variable 43 Variable=UNINSTALL_PATH 44 Value=%UNINSTALL_PATH%\UNWISE.EXE 45end 46item: Compiler Variable If 47 Variable=_EXE_OS_TYPE_ 48 Value=WIN32 49end 50item: Install File 51 Source=%_WISE_%\UNWISE32.EXE 52 Destination=%UNINSTALL_PATH% 53 Flags=0000000000000010 54end 55item: Compiler Variable Else 56end 57item: Install File 58 Source=%_WISE_%\UNWISE.EXE 59 Destination=%UNINSTALL_PATH% 60 Flags=0000000000000010 61end 62item: Compiler Variable End 63end 64item: Remark 65end 66item: Remark 67 Text= Install Support for multiple languages 68end 69item: Remark 70end 71item: Set Variable 72 Variable=UNINSTALL_LANG 73 Value=%UNINSTALL_PATH% 74 Flags=00000010 75end 76item: Set Variable 77 Variable=UNINSTALL_LANG 78 Value=%UNINSTALL_LANG%\UNWISE.INI 79end 80item: Compiler Variable If 81 Variable=_LANG_LIST_ 82 Value=C 83 Flags=00000010 84end 85item: Compiler Variable If 86 Value=%_WISE_%\LANGUAGE\UNWISE.FRA 87 Flags=00000011 88end 89item: If/While Statement 90 Variable=LANG 91 Value=%_LANG_C_NAME_% 92end 93item: Install File 94 Source=%_WISE_%\LANGUAGE\UNWISE.FRA 95 Destination=%UNINSTALL_LANG% 96 Flags=0000000000000010 97end 98item: End Block 99end 100item: Compiler Variable End 101end 102item: Compiler Variable End 103end 104item: Compiler Variable If 105 Variable=_LANG_LIST_ 106 Value=D 107 Flags=00000010 108end 109item: Compiler Variable If 110 Value=%_WISE_%\LANGUAGE\UNWISE.FRA 111 Flags=00000011 112end 113item: If/While Statement 114 Variable=LANG 115 Value=%_LANG_D_NAME_% 116end 117item: Install File 118 Source=%_WISE_%\LANGUAGE\UNWISE.FRA 119 Destination=%UNINSTALL_LANG% 120 Flags=0000000000000010 121end 122item: End Block 123end 124item: Compiler Variable End 125end 126item: Compiler Variable End 127end 128item: Compiler Variable If 129 Variable=_LANG_LIST_ 130 Value=E 131 Flags=00000010 132end 133item: Compiler Variable If 134 Value=%_WISE_%\LANGUAGE\UNWISE.DEU 135 Flags=00000011 136end 137item: If/While Statement 138 Variable=LANG 139 Value=%_LANG_E_NAME_% 140end 141item: Install File 142 Source=%_WISE_%\LANGUAGE\UNWISE.DEU 143 Destination=%UNINSTALL_LANG% 144 Flags=0000000000000010 145end 146item: End Block 147end 148item: Compiler Variable End 149end 150item: Compiler Variable End 151end 152item: Compiler Variable If 153 Variable=_LANG_LIST_ 154 Value=F 155 Flags=00000010 156end 157item: Compiler Variable If 158 Value=%_WISE_%\LANGUAGE\UNWISE.PTG 159 Flags=00000011 160end 161item: If/While Statement 162 Variable=LANG 163 Value=%_LANG_F_NAME_% 164end 165item: Install File 166 Source=%_WISE_%\LANGUAGE\UNWISE.PTG 167 Destination=%UNINSTALL_LANG% 168 Flags=0000000000000010 169end 170item: End Block 171end 172item: Compiler Variable End 173end 174item: Compiler Variable End 175end 176item: Compiler Variable If 177 Variable=_LANG_LIST_ 178 Value=G 179 Flags=00000010 180end 181item: Compiler Variable If 182 Value=%_WISE_%\LANGUAGE\UNWISE.ESP 183 Flags=00000011 184end 185item: If/While Statement 186 Variable=LANG 187 Value=%_LANG_G_NAME_% 188end 189item: Install File 190 Source=%_WISE_%\LANGUAGE\UNWISE.ESP 191 Destination=%UNINSTALL_LANG% 192 Flags=0000000000000010 193end 194item: End Block 195end 196item: Compiler Variable End 197end 198item: Compiler Variable End 199end 200item: Compiler Variable If 201 Variable=_LANG_LIST_ 202 Value=H 203 Flags=00000010 204end 205item: Compiler Variable If 206 Value=%_WISE_%\LANGUAGE\UNWISE.ESP 207 Flags=00000011 208end 209item: If/While Statement 210 Variable=LANG 211 Value=%_LANG_H_NAME_% 212end 213item: Install File 214 Source=%_WISE_%\LANGUAGE\UNWISE.ESP 215 Destination=%UNINSTALL_LANG% 216 Flags=0000000000000010 217end 218item: End Block 219end 220item: Compiler Variable End 221end 222item: Compiler Variable End 223end 224item: Compiler Variable If 225 Variable=_LANG_LIST_ 226 Value=I 227 Flags=00000010 228end 229item: Compiler Variable If 230 Value=%_WISE_%\LANGUAGE\UNWISE.ITA 231 Flags=00000011 232end 233item: If/While Statement 234 Variable=LANG 235 Value=%_LANG_I_NAME_% 236end 237item: Install File 238 Source=%_WISE_%\LANGUAGE\UNWISE.ITA 239 Destination=%UNINSTALL_LANG% 240 Flags=0000000000000010 241end 242item: End Block 243end 244item: Compiler Variable End 245end 246item: Compiler Variable End 247end 248item: Compiler Variable If 249 Variable=_LANG_LIST_ 250 Value=J 251 Flags=00000010 252end 253item: Compiler Variable If 254 Value=%_WISE_%\LANGUAGE\UNWISE.DAN 255 Flags=00000011 256end 257item: If/While Statement 258 Variable=LANG 259 Value=%_LANG_J_NAME_% 260end 261item: Install File 262 Source=%_WISE_%\LANGUAGE\UNWISE.DAN 263 Destination=%UNINSTALL_LANG% 264 Flags=0000000000000010 265end 266item: End Block 267end 268item: Compiler Variable End 269end 270item: Compiler Variable End 271end 272item: Compiler Variable If 273 Variable=_LANG_LIST_ 274 Value=K 275 Flags=00000010 276end 277item: Compiler Variable If 278 Value=%_WISE_%\LANGUAGE\UNWISE.FIN 279 Flags=00000011 280end 281item: If/While Statement 282 Variable=LANG 283 Value=%_LANG_K_NAME_% 284end 285item: Install File 286 Source=%_WISE_%\LANGUAGE\UNWISE.FIN 287 Destination=%UNINSTALL_LANG% 288 Flags=0000000000000010 289end 290item: End Block 291end 292item: Compiler Variable End 293end 294item: Compiler Variable End 295end 296item: Compiler Variable If 297 Variable=_LANG_LIST_ 298 Value=L 299 Flags=00000010 300end 301item: Compiler Variable If 302 Value=%_WISE_%\LANGUAGE\UNWISE.ISL 303 Flags=00000011 304end 305item: If/While Statement 306 Variable=LANG 307 Value=%_LANG_L_NAME_% 308end 309item: Install File 310 Source=%_WISE_%\LANGUAGE\UNWISE.ISL 311 Destination=%UNINSTALL_LANG% 312 Flags=0000000000000010 313end 314item: End Block 315end 316item: Compiler Variable End 317end 318item: Compiler Variable End 319end 320item: Compiler Variable If 321 Variable=_LANG_LIST_ 322 Value=M 323 Flags=00000010 324end 325item: Compiler Variable If 326 Value=%_WISE_%\LANGUAGE\UNWISE.NLD 327 Flags=00000011 328end 329item: If/While Statement 330 Variable=LANG 331 Value=%_LANG_M_NAME_% 332end 333item: Install File 334 Source=%_WISE_%\LANGUAGE\UNWISE.NLD 335 Destination=%UNINSTALL_LANG% 336 Flags=0000000000000010 337end 338item: End Block 339end 340item: Compiler Variable End 341end 342item: Compiler Variable End 343end 344item: Compiler Variable If 345 Variable=_LANG_LIST_ 346 Value=N 347 Flags=00000010 348end 349item: Compiler Variable If 350 Value=%_WISE_%\LANGUAGE\UNWISE.NOR 351 Flags=00000011 352end 353item: If/While Statement 354 Variable=LANG 355 Value=%_LANG_N_NAME_% 356end 357item: Install File 358 Source=%_WISE_%\LANGUAGE\UNWISE.NOR 359 Destination=%UNINSTALL_LANG% 360 Flags=0000000000000010 361end 362item: End Block 363end 364item: Compiler Variable End 365end 366item: Compiler Variable End 367end 368item: Compiler Variable If 369 Variable=_LANG_LIST_ 370 Value=O 371 Flags=00000010 372end 373item: Compiler Variable If 374 Value=%_WISE_%\LANGUAGE\UNWISE.SVE 375 Flags=00000011 376end 377item: If/While Statement 378 Variable=LANG 379 Value=%_LANG_O_NAME_% 380end 381item: Install File 382 Source=%_WISE_%\LANGUAGE\UNWISE.SVE 383 Destination=%UNINSTALL_LANG% 384 Flags=0000000000000010 385end 386item: End Block 387end 388item: Compiler Variable End 389end 390item: Compiler Variable End 391end 392item: Compiler Variable If 393 Variable=_LANG_LIST_ 394 Value=P 395 Flags=00000010 396end 397item: Compiler Variable If 398 Value=%_WISE_%\LANGUAGE\UNWISE.JPN 399 Flags=00000011 400end 401item: If/While Statement 402 Variable=LANG 403 Value=%_LANG_P_NAME_% 404end 405item: Install File 406 Source=%_WISE_%\LANGUAGE\UNWISE.JPN 407 Destination=%UNINSTALL_LANG% 408 Flags=0000000000000010 409end 410item: End Block 411end 412item: Compiler Variable End 413end 414item: Compiler Variable End 415end 416item: Remark 417end 418item: Remark 419 Text= Install the add/remove or uninstall icon 420end 421item: Remark 422end 423item: Set Variable 424 Variable=UNINSTALL_PATH 425 Value=%UNINSTALL_PATH% 426 Flags=00010100 427end 428item: Set Variable 429 Variable=INST_LOG_PATH 430 Value=%_LOGFILE_PATH_% 431 Flags=00010100 432end 433item: Check Configuration 434 Flags=10111011 435end 436item: If/While Statement 437 Variable=DOADMIN 438 Value=1 439end 440item: Remark 441 Text=Write uninstall info under HKLM. This if/else/end block added by Tim. 442end 443item: Edit Registry 444 Total Keys=1 445 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 446 New Value=%APPTITLE% 447 Value Name=DisplayName 448 Root=2 449end 450item: Edit Registry 451 Total Keys=1 452 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 453 New Value=%UNINSTALL_PATH% %INST_LOG_PATH% 454 New Value= 455 Value Name=UninstallString 456 Root=2 457end 458item: Else Statement 459end 460item: Remark 461 Text=The same, but write under HKCU instead. 462end 463item: Edit Registry 464 Total Keys=1 465 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 466 New Value=%APPTITLE% 467 Value Name=DisplayName 468 Root=1 469end 470item: Edit Registry 471 Total Keys=1 472 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 473 New Value=%UNINSTALL_PATH% %INST_LOG_PATH% 474 New Value= 475 Value Name=UninstallString 476 Root=1 477end 478item: End Block 479end 480item: Else Statement 481end 482item: Add ProgMan Icon 483 Group=%GROUP% 484 Icon Name=Uninstall %APPTITLE% 485 Command Line=%UNINSTALL_PATH% %INST_LOG_PATH% 486end 487item: End Block 488end 489item: Check Configuration 490 Flags=11110010 491end 492item: If/While Statement 493 Variable=DOBRAND 494 Value=1 495end 496item: Edit Registry 497 Total Keys=2 498 item: Key 499 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 500 New Value=%COMPANY% 501 Value Name=RegCompany 502 Root=2 503 end 504 item: Key 505 Key=Software\Microsoft\Windows\CurrentVersion\Uninstall\%APPTITLE% 506 New Value=%NAME% 507 Value Name=RegOwner 508 Root=2 509 end 510end 511item: End Block 512end 513item: End Block 514end 515