[
  {
    "Id": "213281",
    "ThreadId": "62831",
    "Html": "<p>I ran the MSI file to install all the DotNetZip files.&nbsp; When I executed this line:</p>\r\n<p>\r\n<p><span style=\"font-size:x-small\"><span style=\"color:#0000ff\">Set </span>zip = CreateObject(</span><span style=\"color:#a31515;font-size:x-small\"><span style=\"color:#a31515;font-size:x-small\">&quot;Ionic.Zip.ZipFile&quot;</span></span><span style=\"font-size:x-small\">) </span></p>\r\n</p>\r\n<p>in my VB Script, I got this error:</p>\r\n<p>ActiveX component can't create object 'Ionic.Zip.ZipFile'</p>\r\n<p>Is DotNetZip compatiable with 64-bit Windows Server 2008?</p>",
    "PostedDate": "2009-07-17T19:24:26.307-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213293",
    "ThreadId": "62831",
    "Html": "<p>yes.&nbsp; What version of .NET do you have installed?&nbsp;&nbsp; Have you verified that the COM object is installed and registered properly?</p>\r\n<p>can you use DotNetZip from a .NET program?</p>",
    "PostedDate": "2009-07-17T20:46:20.843-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213326",
    "ThreadId": "62831",
    "Html": "<p>.NET is 3.5 SP1.</p>\r\n<p>The Ionic.Zip.dll is installed in D:\\Program Files (x86)\\Dino Chiesa\\DotNetZip Runtime v1.8, but I don't know how to check if it is registered correctly.</p>\r\n<p>I haven't tried a .NET program yet.</p>",
    "PostedDate": "2009-07-18T01:25:13.523-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213382",
    "ThreadId": "62831",
    "Html": "<p>If DotNetZip is registered, then in the registry you'll find a key under this name:&nbsp; HKEY_CLASSES_ROOT\\Ionic.Zip.ZipFile\\CLSID .</p>\r\n<p>The value should be {7621E9CE-6878-36C6-9E03-49CCA5E3291C}.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-18T07:51:37.573-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213386",
    "ThreadId": "62831",
    "Html": "<p>The other thing you can try is using Powershell to create the zipfile.&nbsp; Powershell is a newer&nbsp;scripting environment for Windows, the philosophical replacement for vbscript.&nbsp; It's included on Windows Server 2008. It does not use COM.&nbsp;</p>\r\n<p>You can find examples here:</p>\r\n<p><a href=\"http://dotnetzip.codeplex.com/Wiki/View.aspx?title=PS-Examples\">http://dotnetzip.codeplex.com/Wiki/View.aspx?title=PS-Examples</a></p>",
    "PostedDate": "2009-07-18T08:00:08.773-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213396",
    "ThreadId": "62831",
    "Html": "<p>It is registered, but the CLSID is {5312682D-2E00-3D2B-8C80-50AB392B0517}, which is different from yours.&nbsp; Does it matter?</p>",
    "PostedDate": "2009-07-18T09:47:06.373-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213452",
    "ThreadId": "62831",
    "Html": "<p>no, it shouldn't matter.</p>",
    "PostedDate": "2009-07-18T16:10:37.06-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213464",
    "ThreadId": "62831",
    "Html": "<p>Here is what I know so far.&nbsp; I have the following script executed and it failed with the error - Can't create object.&nbsp; I used the Process Monitor to trace and found out HKCR\\CLSID\\{5312682D-2E00-3D2B-8C80-50AB392B0517} was being opened (RegOpenKey), but the result is &quot;NAME NOT FOUND.&quot;&nbsp; It means the DLL was registered and the VB Script could find it from the registry, but failed to locate the actual DLL.</p>\r\n<p>Option Explicit<br>&nbsp;&nbsp;&nbsp; dim&nbsp;zip<br>&nbsp;&nbsp;&nbsp; Set zip = CreateObject(&quot;Ionic.Zip.ZipFile&quot;)<br>WScript.Quit</p>\r\n<p>Could you suggest where I should look next?&nbsp; Thank you.</p>",
    "PostedDate": "2009-07-18T17:33:04.997-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213545",
    "ThreadId": "62831",
    "Html": "<p>What I would suggest is to re-register the assembly then.</p>\r\n<ol>\r\n<li>open a cmd.exe prompt</li>\r\n<li>cd to the directory that holds the Ionic.Zip.dll file</li>\r\n<li>c:\\windows\\Microsoft.NET\\Framework\\v2.0.50727\\regasm.exe &nbsp;/codebase&nbsp; Ionic.Zip.dll</li>\r\n<li>try running your script again</li>\r\n</ol>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-19T07:21:18.74-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213588",
    "ThreadId": "62831",
    "Html": "<p>It is working after registering the asssembly.&nbsp; Thank you so much.</p>\r\n<p>Now I have another problem.&nbsp; If I call <span style=\"font-size:x-small\">zip.AddFile fullFileName, it works.&nbsp; But if I call&nbsp;</span><span style=\"font-size:x-small\">zip.AddFile fullFileName, &quot;&quot;, an error saying &quot;Wrong number of arguments or invalid property assignment.&quot;&nbsp; What did I do wrong?</span></p>\r\n<p><span style=\"font-size:x-small\">\r\n<p>&nbsp;</p>\r\n</span></p>",
    "PostedDate": "2009-07-19T12:49:54.553-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213623",
    "ThreadId": "62831",
    "Html": "<p>I don't know why it would not have been registered when you installed it.&nbsp; ??&nbsp; But I'm glad that part is working now.</p>\r\n<p>On the next problem - with COM interop.&nbsp; I don't know why that is happening. ?&nbsp;&nbsp; I guess I hadn't tested that overload.&nbsp; It looks to me like it should work.</p>\r\n<p>As a workaround, You can rename the entry after you've added it.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-19T15:31:34.99-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213625",
    "ThreadId": "62831",
    "Html": "<p>Sorry, I don't know how to rename the entry?&nbsp; Could you give me some instructions?&nbsp; Thank you.</p>",
    "PostedDate": "2009-07-19T15:39:21.28-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213638",
    "ThreadId": "62831",
    "Html": "<table border=0>\r\n<tbody>\r\n<tr>\r\n<td>\r\n<p>sure.</p>\r\n<pre>    Dim entry\r\n    Set entry = zip1.AddFile (&quot;c:\\directory\\FileToBeAdded.txt&quot;)\r\n    ' remove the directory structure for the just-added entry\r\n    entry.FileName = &quot;FileToBeAdded.txt&quot;\r\n\r\n</pre>\r\n<p>You could achieve the same effect by changing the current directory to be the one that contains the file to be zipped, before adding it.</p>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>",
    "PostedDate": "2009-07-19T17:28:15.13-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213901",
    "ThreadId": "62831",
    "Html": "<p>Sorry not to state clearly what I want to do.&nbsp; I want to pass an empty string to AddFile as a second parameter so that the the folder structure won't be kept.&nbsp; Changing the entry's name won't do that, will it?</p>",
    "PostedDate": "2009-07-20T10:38:07.517-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213920",
    "ThreadId": "62831",
    "Html": "<table border=0 width=800>\r\n<tbody>\r\n<tr>\r\n<td>\r\n<p>Yes, setting the FileName on the entry will implicitly set the directory structure for that entry.&nbsp; If there is a directory in the filename, then it is used when saving that entry into the zip file.&nbsp; If there is no directory - in other words there is no backslash (or forward slash), then the entry will be stored in the &quot;top level&quot; directory in the zip archive.</p>\r\n<p>I also found out that with VBScript and COM clients, you will not be able to call the overloaded AddFile() method, the one that takes two strings.&nbsp; This is not something I will be able to fix in the library.&nbsp; It's a consequence of COM interop.</p>\r\n<p>So, the best way to do what you want is to set the FileName on the entry after adding it to the archive.</p>\r\n<p>ps: I edited the code above to be more clear about what you wanted to do.</p>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>",
    "PostedDate": "2009-07-20T11:10:14.867-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "213962",
    "ThreadId": "62831",
    "Html": "<p>It is working great now.&nbsp; Thank you for all your help.</p>",
    "PostedDate": "2009-07-20T13:00:35.353-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "214016",
    "ThreadId": "62831",
    "Html": "<p>great, glad to hear it.</p>",
    "PostedDate": "2009-07-20T14:59:45.967-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]